Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
What commands do you use to name a workbook, save a workbook,open a workbook
Would you please provide wih the commands to name a existing workbook,
save an existing workbook, and then open the workbook. Thank you |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
What commands do you use to name a workbook, save a workbook,open a workbook
to name a existing workbook you need to use the save as
method of the workbook, example: ActiveWorkbook.SaveAs "NewName.xls" The previous commnand can fail if it already exist a file on the current directory with the name "NewName.xls", but if you want to saveit any way you can use: on error resume next workbooks("NewName.xls").close false kill "NewName.xls" ActiveWorkbook.SaveAs "NewName.xls" to just save the workbook with the same name it already has you use the save command, example: ActiveWorkbook.Save Francisco Mariscal fcomariscal at hotmail dot com -----Original Message----- Would you please provide wih the commands to name a existing workbook, save an existing workbook, and then open the workbook. Thank you . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Select sheet tabs in workbook & save to separate workbook files | Excel Worksheet Functions | |||
Copying A Worksheet From Each Open Workbook to an new Workbook | Excel Worksheet Functions | |||
my colors change in my workbook when I open another workbook | Excel Discussion (Misc queries) | |||
Why when i have more than one workbook open and i want to save ch. | New Users to Excel | |||
Importing Data from unopened Workbook into an open Workbook | Excel Discussion (Misc queries) |