Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
save files
in a script, how dow i save the file by what ever is in a specific cell,thanks
|
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
save files
In VBA for Excel the basic command is
ActiveWorkbook.SaveAs Filename:=Worksheets("Sheet1").Range("A1").Value A1 would contain the path and filename to save it under, or filename to just save in default location. If you want to prevent displaying alerts like "file exists ... overwrite?" then use this Application.DisplayAlerts = False ActiveWorkbook.SaveAs Filename:=Worksheets("Sheet1").Range("A1").Value Application.DisplayAlerts = True Just remember that if there are any other errors that take place such as disk full, invalid path, etc. then things will pretty much just fail rather dramatically. "bkyw" wrote: in a script, how dow i save the file by what ever is in a specific cell,thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
can you automatically save files to two different locations? | Excel Discussion (Misc queries) | |||
Spreadsheet lists | New Users to Excel | |||
Save as Msg box | Excel Discussion (Misc queries) | |||
can not save office2000 files with new name over network | Excel Discussion (Misc queries) | |||
problem with save files from office 2003 | Excel Discussion (Misc queries) |