Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
try this:
Sub test() With ThisWorkbook WbPath = .Path wbName = "\RosterBilling" & _ Format(.Sheets(1).Range("D3"), "mmmmyyyy") & ".xls" .SaveAs WbPath & wbName End With End Sub Regards, KL "tkaplan" wrote in message ... I am trying to write VBA to save the current workbook : I need the file name to be: In cell D3 I have a date entered. I want the file name to be: RosterBillingMonthYear so for example if D3 is 7/5/2005 the name of the file should be "RosterBillingJuly2005" what would be the coding for this? thanks in advance. -- tkaplan ------------------------------------------------------------------------ tkaplan's Profile: http://www.excelforum.com/member.php...o&userid=22987 View this thread: http://www.excelforum.com/showthread...hreadid=387230 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Opening a file with code without a set file name | Excel Discussion (Misc queries) | |||
Locating a file in excel with a partial file name. | Excel Discussion (Misc queries) | |||
Locating a file in excel with a partial file name. | Excel Discussion (Misc queries) | |||
Locating a file in excel with a partial file name. | Excel Discussion (Misc queries) | |||
Read Text File into Excel Using VBA | Excel Discussion (Misc queries) |