Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I wanted to have my macro to save my file into a new folder according to the month it was for (ie, a new folder will be created every month). My macro goes like this, but it can't seem to work: Dim myMonth As String Dim myNewFolder As String myMonth = Format(Range("c4"), "yymm") myNewFolder = Format(Range("c4"), "MMM") myFileName = "M:\RECONCILIATIONS\" & myNewFolder & myMonth & " SG51-1421000" ActiveWorkbook.SaveAs Filename:=myFileName, FileFormat:=xlWorkbookNormal Thanks, Dolphin |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Help (Uppercase multiple ranges?) | Excel Discussion (Misc queries) | |||
Selecting the current month using a macro on a pivot table | Excel Discussion (Misc queries) | |||
Trying to Create a Macro | Excel Worksheet Functions | |||
Macro to create PDF's question | Excel Discussion (Misc queries) | |||
How to create an "IF - THEN" macro | Excel Discussion (Misc queries) |