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

Save As path

$
0
0
Hello,

I am using the below macro and as I got some help on the forum about it, I am not capable of fully understand and make a little change..

I need adapt the macro to the following: I need to copy the workbook in the path "C:\Users\User\EVENT ALL\" + cell M12 so the path should be "C:\Users\User\EVENT ALL\Whateveris in M12" an dthe file sould be named as the current day with the following format: yyyymmdd.xlsx (eg: 20130715.xlsx)

ORIGINAL:
HTML Code:

ActiveWorkbook.SaveAs Filename:="C:\Users\User\EVENT ALL\" & Range("M12").Value & "dd.mm.yyyy") & ".xlsm", _
        FileFormat:=xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
End Sub

But It does not copy the file in the correct location. can you help me figure out why?

Thanks,
Graig

Viewing all articles
Browse latest Browse all 50151

Trending Articles