PC Review


Reply
Thread Tools Rate Thread

Call an addin Macro from Workbook_Open event

 
 
r.c.j.tongeren@arcadis.nl
Guest
Posts: n/a
 
      28th Aug 2007
Ik have an Excel 2003 Addin with several Macro's. One of the macro's
should start if I open an existing workbook. The only way I know is to
create a template with an event which call the macro from the AddIn.
This has two disadvantages
- It's only working in new workbooks
- I the enduser has set the security to a high lever it won't work

Example
I want to call the macro Activate_form from a XLA addIn when I open a
new or existing workbook without macro's in the new or existing
workbook. I only want to have macro's in de Addin.

Does anybody knows a way to reach this.

Thanks
Ruud

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      28th Aug 2007
Use application level events in the addin

http://www.cpearson.com/excel/appevents.htm

--
Regards,
Tom Ogilvy


"(E-Mail Removed)" wrote:

> Ik have an Excel 2003 Addin with several Macro's. One of the macro's
> should start if I open an existing workbook. The only way I know is to
> create a template with an event which call the macro from the AddIn.
> This has two disadvantages
> - It's only working in new workbooks
> - I the enduser has set the security to a high lever it won't work
>
> Example
> I want to call the macro Activate_form from a XLA addIn when I open a
> new or existing workbook without macro's in the new or existing
> workbook. I only want to have macro's in de Addin.
>
> Does anybody knows a way to reach this.
>
> Thanks
> Ruud
>
>

 
Reply With Quote
 
r.c.j.tongeren@arcadis.nl
Guest
Posts: n/a
 
      29th Aug 2007
Thanks,

That was the information where I was looking for and its works as
describes on that site

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call AddIn-Functions from VBA-Macro Steffen Grellmann Microsoft Outlook Program Addins 7 23rd Jul 2008 09:34 PM
Workbook_Open does not run for Addin lightsaber777@gmail.com Microsoft Excel Programming 3 9th Jul 2008 04:25 PM
Addin Macro Call Rick Microsoft Excel Programming 1 20th Dec 2007 06:19 AM
trouble getting addin's workbook_open procedure to recognize activeworkbook martin Microsoft Excel Programming 6 30th Apr 2006 05:18 PM
How to make outlooks event raise in Addin before Macro??/ Mat Microsoft Outlook Program Addins 1 3rd Dec 2003 01:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:56 PM.