ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Close excel in vbe (https://www.excelbanter.com/excel-programming/430192-close-excel-vbe.html)

pls123

Close excel in vbe
 

hello all !!
im using this..

ThisWorkbook.Save
ThisWorkbook.Close

....to save and close my page at a indicated time..
...but the page of excel remains open..
...and i want to close it too..
how can i do it ??
tx all

EricG

Close excel in vbe
 

Application.Quit

If you have unsaved workbooks, Excel will ask you if you want to save them.
To avoid this message, you can add the lines below, or you can save the
workbooks ahead of time and then quit.

Application.DisplayAlerts = False
Application.Quit

HTH,

Eric


"pls123" wrote:

hello all !!
im using this..

ThisWorkbook.Save
ThisWorkbook.Close

...to save and close my page at a indicated time..
..but the page of excel remains open..
..and i want to close it too..
how can i do it ??
tx all


Don Guillett

Close excel in vbe
 

ThisWorkbook.Save
application.quit

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"pls123" wrote in message
...
hello all !!
im using this..

ThisWorkbook.Save
ThisWorkbook.Close

...to save and close my page at a indicated time..
..but the page of excel remains open..
..and i want to close it too..
how can i do it ??
tx all



pls123

Close excel in vbe
 

tx all !!

"Don Guillett" wrote:

ThisWorkbook.Save
application.quit

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"pls123" wrote in message
...
hello all !!
im using this..

ThisWorkbook.Save
ThisWorkbook.Close

...to save and close my page at a indicated time..
..but the page of excel remains open..
..and i want to close it too..
how can i do it ??
tx all





All times are GMT +1. The time now is 11:00 AM.

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