LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default using one macro to edit another

I'm sure I saw a post here once about doing this but can't find it now.
I have a CommandBar.add macro on startup that loads a bunch of buttons and
associated functions. i.e. a series of

Set Button1 = mybar.Controls.Add(Type:=msoControlButton)
With Button1
.Style = msoButtonIcon
.Picture = LoadPicture(ThisWorkbook.Path & "\FirstPicture.bmp")
.TooltipText = "run the first macro"
.OnAction = "FirstMacro"
End With
Set Button2 = mybar.Controls.Add(Type:=msoControlButton)
........ etc etc etc

All running OK but as different people request functions that are only
needed by 1 or 2 colleagues, the toolbar is getting wider and wider.
I want to give the users some configuration options, such as individually
setting the files in a "frequently used files" menu or deciding which
functions/buttons will be displayed and which not.
What would be the best way to approach this ?

The only way I can think of (with my limited abilities) is through a "setup"
form with check boxes linked to cells in the xlt, but how can I get those
TRUE or FALSE values to determine what parts of the CommandBar creation macro
get used ?
Do I need to create a settings file (txt ?) somewhere and have a macro read
it on startup (and how would I do that) ?


--
WinXP - Office2003 (Italian)
 
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
Record Macro and Edit Macro options disabled Huzza New Users to Excel 1 March 18th 09 03:55 PM
Run and edit a Macro santaviga Excel Programming 1 May 1st 08 03:55 PM
how to edit a macro Daniel Excel Discussion (Misc queries) 3 December 11th 07 04:38 PM
How do I edit this macro? Mallers Excel Discussion (Misc queries) 5 April 24th 06 07:32 PM
Edit this macro Kent48 Excel Programming 1 October 2nd 04 06:32 PM


All times are GMT +1. The time now is 08:19 AM.

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"