Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default xla creating new menu items


I've created an XLA, which adds various functionality to Excel to lin
with another application.

This works perfectly both as an XLS and an XLA file.

I have also written some code to add menu items, which needs to run a
a Workbook_Activate macro.

Again, this works perfectly as an XLS file, but the minute it i
converted into an XLA, it fails to run.

I'm using Excel 2003, and fear that this is something to do wit
Trusted Sources etc, but all security is set to low, and "Trust al
installed addins" is ticked, so I thought it should work.

The only thing I can think of is that Workbook_Activate has to b
replaced by something like Addin_Activate, but that doesn't seem t
work.

Any ideas

--
dspence
-----------------------------------------------------------------------
dspencer's Profile: http://www.excelforum.com/member.php...fo&userid=3096
View this thread: http://www.excelforum.com/showthread.php?threadid=50633

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default xla creating new menu items

An XLA is never activated. If you want code to run when this workbook is
loaded, use the Workbook_Open event.

--
Regards,
Tom Ogilvy

"dspencer" wrote in
message ...

I've created an XLA, which adds various functionality to Excel to link
with another application.

This works perfectly both as an XLS and an XLA file.

I have also written some code to add menu items, which needs to run as
a Workbook_Activate macro.

Again, this works perfectly as an XLS file, but the minute it is
converted into an XLA, it fails to run.

I'm using Excel 2003, and fear that this is something to do with
Trusted Sources etc, but all security is set to low, and "Trust all
installed addins" is ticked, so I thought it should work.

The only thing I can think of is that Workbook_Activate has to be
replaced by something like Addin_Activate, but that doesn't seem to
work.

Any ideas?


--
dspencer
------------------------------------------------------------------------
dspencer's Profile:

http://www.excelforum.com/member.php...o&userid=30967
View this thread: http://www.excelforum.com/showthread...hreadid=506334



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default xla creating new menu items


Thanks a lot Tom - It worked perfectly!


Dan


--
dspencer
------------------------------------------------------------------------
dspencer's Profile: http://www.excelforum.com/member.php...o&userid=30967
View this thread: http://www.excelforum.com/showthread...hreadid=506334

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
Menu items Pietro Excel Discussion (Misc queries) 2 March 1st 07 10:41 AM
New menu items Daniel Bonallack Excel Programming 2 November 2nd 05 07:59 PM
Menu items added with menu item editor in older versions Michael Hoffmann Excel Discussion (Misc queries) 2 January 7th 05 01:40 PM
Sub Menu Items pauluk[_72_] Excel Programming 1 July 27th 04 12:23 PM
Creating menu items without using VBA way? StargateFan[_3_] Excel Programming 18 June 28th 04 04:01 AM


All times are GMT +1. The time now is 02:13 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"