LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Re : Custom menu created in an xla macro

See Debra Dalgleish's site for code to create an add-in with code to add a
Toolbar.

http://www.contextures.on.ca/xlToolbar02.html

Note the .OnAction line using Thisworkbook as Ron pointed out.


Gord Dibben MS Excel MVP

On Tue, 7 Oct 2008 20:07:49 +0200, "thomas" <nomail wrote:

Unfortunately i tried it today at the office and it does not work

mymacro is in the xla file and the menu command makes it works

if i open an xls workbook containing a copy of mymacro and then the menu
command makes that copy work. If i deleted that copy, a message says it
does not find 'mymacro'


"Ron de Bruin" a écrit dans le message de groupe
de discussion : ...
Try this Thomas

.OnAction = ThisWorkbook.Name & "!mymacro"




 
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
Custom Menu with Macro doesn't save. Brijesh Excel Discussion (Misc queries) 2 December 12th 07 11:35 PM
Assign macro to custom menu Harley Excel Programming 2 November 15th 06 02:55 PM
Add menuitems to custom created menu René[_2_] Excel Programming 1 January 22nd 06 02:34 PM
How do I add a macro to a custom menu? MikeCyng Excel Discussion (Misc queries) 6 October 24th 05 02:56 PM
run macro from custom menu ken smith[_2_] Excel Programming 2 January 15th 04 02:04 PM


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