Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How would I create a new work book and name it from an active workbook name
& todays date? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub test()
Dim strFileName As String strFileName = ActiveWorkbook.Name If Right(strFileName, 4) = ".xls" Then strFileName = Left(strFileName, Len(strFileName) - 4) End If With Workbooks.Add .SaveAs strFileName & Format(Date, "yyyymmdd") .Close End With End Sub -- Rob van Gelder - http://www.vangelder.co.nz/excel "Kevin G" wrote in message news:E9kUb.8505$An3.154@edtnps84... How would I create a new work book and name it from an active workbook name & todays date? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I Use VBA to Create New Workbook Without Links? | Excel Discussion (Misc queries) | |||
Create workbook | Excel Discussion (Misc queries) | |||
Create New Workbook from Worksheets in One Workbook | Excel Discussion (Misc queries) | |||
Taking specific rows from on workbook to create another workbook | Excel Worksheet Functions | |||
help! create master workbook | Excel Discussion (Misc queries) |