Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I am trying to edit an excel spreadsheet and then close it using
vbscript. the script currently edits the data fine, but when it closes, it gives the Save prompt. Is there a way to close the spreadsheet saving the new data automatically without any user input Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
At the start of your script, place the line
Const xlSaveChanges = 1 Assuming the workbook object you've created is named objWorkbook and the application object is named objExcel, finish your script with objWorkbook.Close xlSaveChanges objExcel.Quit Steve wrote in message ups.com... Hi, I am trying to edit an excel spreadsheet and then close it using vbscript. the script currently edits the data fine, but when it closes, it gives the Save prompt. Is there a way to close the spreadsheet saving the new data automatically without any user input Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks very much
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
No prompt to save Excel file which has changed | Excel Discussion (Misc queries) | |||
have excel prompt for a file name and save location | Excel Discussion (Misc queries) | |||
save prompt for user exit, but no save prompt for batch import? | Excel Discussion (Misc queries) | |||
how to disable save prompt on closing excel file in automated mode | Excel Discussion (Misc queries) | |||
Prompt user to save their file | Excel Programming |