ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro to save excel file (https://www.excelbanter.com/excel-programming/302497-macro-save-excel-file.html)

jc lewis

Macro to save excel file
 
I have created a macro that imports a .txt file and does the import
wizard thing. How you can have excel save and close the file at
completion without all those annoying save prompts?


Thanks
jc lewis

Tom Ogilvy

Macro to save excel file
 
ActiveWorkbook.Close SaveChanges:=True

--
Regards,
Tom Ogilvy

"jc lewis" wrote in message
om...
I have created a macro that imports a .txt file and does the import
wizard thing. How you can have excel save and close the file at
completion without all those annoying save prompts?


Thanks
jc lewis





All times are GMT +1. The time now is 12:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com