Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
unactive workbook name
how would i handle renaming an unactive workbook in a repeating loop.
the first pass through a macro creates a book and when macro is repeated a 2nd book is created. if there are 2 book added i want to rename activebook "new" and the prior book i want to rename "old" . after working with 2 books the macro is repeated; delete old, rename "new" as "old" and next activebook added name "new" thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
unactive workbook name
Something like :-
Application.DisplayAlerts = False Workbooks("New.xls").SaveAs FileName:="Old.xls" ActiveWorkbook.SaveAs FileName:="New.xls" Application.DisplayAlerts = True Regards BrianB ================================================ "bob" wrote in message .ca... how would i handle renaming an unactive workbook in a repeating loop. the first pass through a macro creates a book and when macro is repeated a 2nd book is created. if there are 2 book added i want to rename activebook "new" and the prior book i want to rename "old" . after working with 2 books the macro is repeated; delete old, rename "new" as "old" and next activebook added name "new" thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Refresh pivot table in workbook A when changing a cell in workbook | Excel Worksheet Functions | |||
Adding a chart to large workbook brings workbook activity to a hal | Excel Discussion (Misc queries) | |||
Excel workbook is corrupted, workbook automatically saves on start | Excel Discussion (Misc queries) | |||
Select sheet tabs in workbook & save to separate workbook files | Excel Worksheet Functions | |||
What commands do you use to name a workbook, save a workbook,open a workbook | Excel Programming |