ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I make Command button ( Save & Exit) for Excel (https://www.excelbanter.com/excel-programming/345789-how-do-i-make-command-button-save-exit-excel.html)

Abutaha

How do I make Command button ( Save & Exit) for Excel
 
I would like to build a command button to be used in Excel
The function of button is ( Save file then Exit ) - How to make this command
button by Visual Basic . Thanks for help

Ron de Bruin

How do I make Command button ( Save & Exit) for Excel
 
Hi Abutaha

This is the code line you need
ActiveWorkbook.Close True

Add a button on your sheet from the Forms or control toolbox toolbar
and assign a macro with this code line to it.


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Abutaha" wrote in message ...
I would like to build a command button to be used in Excel
The function of button is ( Save file then Exit ) - How to make this command
button by Visual Basic . Thanks for help





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

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