Excel宏保存信息
好的,我正在 Excel 2010 中创建一个宏。我希望将数据投影到未来。我想要做的是在 Excel 中创建一个“假设”按钮,该按钮将允许我自由编辑数据。然后,在完成后,我想要另一个按钮“重置”,如果我按下该按钮,会将整个数据集重置为之前的状态。然后如果可能的话创建另一个按钮。 “最后一个场景”将返回最后一个“如果改变会怎样”。
例如,使用包含 1 月至 12 月月份的 Excel 然后,对于
- 销售
- 成本
- 利润(销售额 - 成本 = 利润),
我希望只用一张 Excel 工作表来完成此操作,并且无需在 Excel 之外保存即可完成所有这些操作。如果有办法暂时保存在新的工作表中以供调用。然后它会保存最后一个场景,直到创建一个新的假设,从而删除旧的假设。
谢谢
Ok so I am creating a Macro in Excel 2010. I am looking to project data in to the future. What I want to do is create a button in Excel "What if" that will allow me to freely edit the data. Then after I am done I would like to have another button "Reset" which if I pushed would reset the entire data set to what was previously there. Then if it were possible create another button. "Last Scenario" which would return the last "What if change."
For example use a excel with months Jan-Dec
Then with
- Sales
- Costs
- Profits (Sales - Costs = Profits)
I would hopefully like to do this only having one excel sheet and doing all this without having to save outside of excel. If there was a way to save in a new sheet temporarly to recall from. Then it saves the Last Scenario until a new whatif is created which erases the old whatif.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用从单元格 A1 派生的文件名保存当前 Excel 文件
to save the current Excel file with a filename derived from cell A1