ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   save Changes and close book (https://www.excelbanter.com/excel-programming/395372-save-changes-close-book.html)

Darin Kramer

save Changes and close book
 


Hi there,

I use the personal VB workbook to run a series of macros. They run a
macro on the active workbook. At the end of the macros I need to tell
the Macro within the Personal workbook to close the active workbook on
which it has just run the macros... , anyone know the VB for that...???

Regards

D

*** Sent via Developersdex http://www.developersdex.com ***

Tom Ogilvy

save Changes and close book
 
ActiveWorkbook.Close SaveChanges:=True

--
Regards,
Tom Ogilvy


"Darin Kramer" wrote:



Hi there,

I use the personal VB workbook to run a series of macros. They run a
macro on the active workbook. At the end of the macros I need to tell
the Macro within the Personal workbook to close the active workbook on
which it has just run the macros... , anyone know the VB for that...???

Regards

D

*** Sent via Developersdex http://www.developersdex.com ***



All times are GMT +1. The time now is 09:33 AM.

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