2016-07-15 106 views
-1

我想复制一个Excel文件的方式如下(EXCEL 2013):复制Excel文件并重新命名它

当我打开nameofthefile,首先,自动宏的开始和工作是这样的:

1.- Explore the actual date of the computer 
2.- If the actual computer date is > of the last save date of the nameofthefile then 
2.1.- copy the file on the same directory 
2.2.- rename the copied file to nameofthefile_dd_mm_yyyy (the actual date) 
2.3.- end macro 
3.- If the actual computer date is <= of the last save date of the file then do nothing an end macro. 

什么想法? 谢谢...

+1

我们将不只是代码为你,请发表任何企图,并且你已经有了代码! –

+0

想法?是。启动宏录制器并执行您想要执行的步骤。然后清理代码并在条件下工作。 – teylyn

+0

谢谢...我会那么做...对不起。这是我第一次,我有这个问题,我不知道如何处理... –

回答

0

如果我打开复制的文件之一,应再次进行自我复制,其是否符合要求?新的日期应该放在旧的还是旧的?

+0

很聪明的问题... 没有,只有该组的最后一个文件被打开进行编辑...另一个是日常备份。例如......我们有开始工作的原始文件...然后第二天原始文件autobackuped白衣日期前添加到名称:然后第二天我们打开原始文件,等等.. 。 –

+0

所以你总是打开相同的文件,当你打开它,它应该是复制保存在同一文件夹添加到文件名的日期? –

相关问题