Hello,
I've got a set of dir's labeled
07-01 January Stickers
07-02 February Stickers
etc
and i'm currently using the following code
Sub SaveStickers()
Dim strFileB
Const sPATH As String = "\\Server\Dir1\Dir2\Stickers\"
Const sFILE As String = "Fulfillment"
Const sVAR As String = ""
ActiveWorkbook.SaveCopyAs sPATH & strFileB & sVAR & _
Format(Now - 1, "dd-mm-yy ") & sFILE & ".csv"
Application.DisplayAlerts = False
ActiveWorkbook.Close
Application.DisplayAlerts = True
End Sub
What I now need to do is get the sPATH var ( I think ) to change depending on the current MM-YY and point to / create if it dosn't exist, the corresponding Dir.
Any Ideas on how I can do this ?
Thanks ( as always )
I've got a set of dir's labeled
07-01 January Stickers
07-02 February Stickers
etc
and i'm currently using the following code
Sub SaveStickers()
Dim strFileB
Const sPATH As String = "\\Server\Dir1\Dir2\Stickers\"
Const sFILE As String = "Fulfillment"
Const sVAR As String = ""
ActiveWorkbook.SaveCopyAs sPATH & strFileB & sVAR & _
Format(Now - 1, "dd-mm-yy ") & sFILE & ".csv"
Application.DisplayAlerts = False
ActiveWorkbook.Close
Application.DisplayAlerts = True
End Sub
What I now need to do is get the sPATH var ( I think ) to change depending on the current MM-YY and point to / create if it dosn't exist, the corresponding Dir.
Any Ideas on how I can do this ?
Thanks ( as always )