Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How to run macros as one close a excel?
|
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() In the ThisWorkbook Module: Code: -------------------- Private Sub Workbook_BeforeClose(Cancel As Boolean) 'MY MACRO End Sub -------------------- -- Simon Lloyd Regards, Simon Lloyd 'The Code Cage' (http://www.thecodecage.com) ------------------------------------------------------------------------ Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=49704 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
In VB editor double click 'This Workbook' and paste this iin on the right and enter your code. Private Sub Workbook_BeforeClose(Cancel As Boolean) 'do things End Sub Mike "Hashmi" wrote: How to run macros as one close a excel? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Close Workbook if Macros not enabled | Excel Programming | |||
Disable Macros --> Close File | Setting up and Configuration of Excel | |||
close WB after clicking DISABLE MACROS | Excel Programming | |||
Macros on workbook close and save | Excel Programming | |||
Close a workbook without saving macros | Excel Programming |