Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50199

[SOLVED] save unique copy

$
0
0
hi forum

I got the following code i need some help i want to save a unique file every time i run the code ,
i was thinking add Date0r Now function . i think that would create a unique file. but unfortunately i don't know how to do it.


Code:

Sub Saving_A_Copy_Of_Workbook()
Dim myfilename As Variant


myfilename = "C:\Users\myname\Desktop\work BM\debone\DEBONING DAILY BACKUP\DEBONING .xls"
 

ActiveWorkbook.SaveCopyAs myfilename
End Sub


Viewing all articles
Browse latest Browse all 50199

Trending Articles