Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What is the correct code to save the current workbook (Book1.xls) as
(Book1A.xls) Thanks for the help. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Ronbo,
Try this: ' Get the filename with path sName = ThisWorkbook.FullName ' Add an 'A' to the end of the filename sName = Left(sName, Len(sName) - 4) & "A.xls" 'Save under new name ThisWorkbook.SaveAs sName Hoop This Helps, Executor |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks. Exactly what I was looking for.
"Executor" wrote: Hi Ronbo, Try this: ' Get the filename with path sName = ThisWorkbook.FullName ' Add an 'A' to the end of the filename sName = Left(sName, Len(sName) - 4) & "A.xls" 'Save under new name ThisWorkbook.SaveAs sName Hoop This Helps, Executor |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SAveAs executes combobox code | Excel Programming | |||
More help with SaveAs | Excel Programming | |||
Help with SaveAs | Excel Programming | |||
SaveAs | Excel Programming | |||
URGENT - Need date format for SaveAs code | Excel Programming |