Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi I have the code below, this works fine apart from Range B6 is in the
format DD/MM/YY, I need this to change as you can't save a file with "/" in the title. I dont want to change the format of the Cell as Many users will be accessing this and will all enter the date differently. Any ideas how to add it in to my code to change the date automatically. Cheers Duncan Dim WB As Workbook Dim SH As Worksheet Const sPath As String = "C:\Duncan\" Set WB = ActiveWorkbook WB.SaveAs Filename:=sPath & Range("A18").Value & " " & Range("D9").Value & " " & Range("B6").Value, FileFormat:=xlWorkbookNormal MsgBox "Thank you, Your Memo has been sent to Payroll & a Copy of has been saved In: T:\Permgmt\GENTECH\GENERAL\Shared Service\Memos\ PRESS OK TO RETURN TO THE MEMO GUIDE", vbInformation, "HEAD OFFICE - Payroll Documents" ActiveWindow.Close |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save file as todays date | Excel Discussion (Misc queries) | |||
Recovering File Info Specifically Save Date or Print Date | Excel Discussion (Misc queries) | |||
Save file with last month date on end | Excel Programming | |||
Macro to save Excel file with date and time in the file name? | Excel Programming | |||
VB Script file save as with date | Excel Programming |