ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Help with auto macro on closing (https://www.excelbanter.com/excel-discussion-misc-queries/88838-help-auto-macro-closing.html)

mr_teacher

Help with auto macro on closing
 

Hi,

I am sure that this is something dead easy but can't work out where to
put it!!!!

I have used a macro to automatically run when a workbook opens - is it
possible to have a macro that will run on closing?

Basically I have hidden some of the formatting bars when the programme
is turned on and I would like them to become visible again when I
switch it off - but help on how to set the macro off would be ideal

Thanks for the help

Carl:(


--
mr_teacher
------------------------------------------------------------------------
mr_teacher's Profile: http://www.excelforum.com/member.php...o&userid=34352
View this thread: http://www.excelforum.com/showthread...hreadid=542503


Don Guillett

Help with auto macro on closing
 
have a look in the ThisWorkbook module where your workbook_open event is
stored.

--
Don Guillett
SalesAid Software

"mr_teacher" wrote
in message ...

Hi,

I am sure that this is something dead easy but can't work out where to
put it!!!!

I have used a macro to automatically run when a workbook opens - is it
possible to have a macro that will run on closing?

Basically I have hidden some of the formatting bars when the programme
is turned on and I would like them to become visible again when I
switch it off - but help on how to set the macro off would be ideal

Thanks for the help

Carl:(


--
mr_teacher
------------------------------------------------------------------------
mr_teacher's Profile:
http://www.excelforum.com/member.php...o&userid=34352
View this thread: http://www.excelforum.com/showthread...hreadid=542503




mr_teacher

Help with auto macro on closing
 

Thank - managed to find that and got the macro working perfectly!

Thanks for pointing me in the right direction!


--
mr_teacher
------------------------------------------------------------------------
mr_teacher's Profile: http://www.excelforum.com/member.php...o&userid=34352
View this thread: http://www.excelforum.com/showthread...hreadid=542503


Don Guillett

Help with auto macro on closing
 
glad to help. Better to learn to fish than be given fish.

--
Don Guillett
SalesAid Software

"mr_teacher" wrote
in message ...

Thank - managed to find that and got the macro working perfectly!

Thanks for pointing me in the right direction!


--
mr_teacher
------------------------------------------------------------------------
mr_teacher's Profile:
http://www.excelforum.com/member.php...o&userid=34352
View this thread: http://www.excelforum.com/showthread...hreadid=542503





All times are GMT +1. The time now is 05:45 AM.

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