Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Code for all workbooks

Hello,

I would like to create an Add-In or some other method that would run some
code when every workbook is open and when every workbook is closed.

I am aware of the Workbook_open event and the beforeClose event but how do I
program my add in to run code at those times, for everything that open or
closes?

Thanks,
Kevin
The Disgruntled XTech IT Dept


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Code for all workbooks

You should give this a quick look...

http://www.cpearson.com/excel/AppEvent.htm
--
HTH...

Jim Thomlinson


"The unFriendly XTech IT Dept" wrote:

Hello,

I would like to create an Add-In or some other method that would run some
code when every workbook is open and when every workbook is closed.

I am aware of the Workbook_open event and the beforeClose event but how do I
program my add in to run code at those times, for everything that open or
closes?

Thanks,
Kevin
The Disgruntled XTech IT Dept


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Code for all workbooks

Thanks Jim I'll work on it

Thanks,
Kevin
The Disgruntled XTech IT Dept



"Jim Thomlinson" wrote:

You should give this a quick look...

http://www.cpearson.com/excel/AppEvent.htm
--
HTH...

Jim Thomlinson


"The unFriendly XTech IT Dept" wrote:

Hello,

I would like to create an Add-In or some other method that would run some
code when every workbook is open and when every workbook is closed.

I am aware of the Workbook_open event and the beforeClose event but how do I
program my add in to run code at those times, for everything that open or
closes?

Thanks,
Kevin
The Disgruntled XTech IT Dept


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
vba code to open workbooks Rebecca1 Excel Worksheet Functions 3 March 5th 08 05:15 PM
VBA Code req to close all workbooks Neil Atkinson Excel Programming 2 September 23rd 05 01:46 PM
VBA Code req to close all workbooks Neil Atkinson Excel Programming 0 September 23rd 05 11:06 AM
Where to put code for access by all workbooks David Smith[_2_] Excel Programming 4 February 28th 04 12:25 AM
VBA code in multiple workbooks Jon[_14_] Excel Programming 1 January 7th 04 04:29 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"