Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How do I make a macro call on different macros

I am stuck. I can not find this problem is help.
I have a combo box from the control tool box. Right now I am populating it
with a range of cells and I am trying to create a command button from Forms
Menu to run a macro that is determined by the link cell from the combo box.
The question I have is how do I create a nested Macro to call the appropriate
macro depending on what is selected in the combo box. Or can I use the combo
box to call on macros. If so how? I have been looking through other posts and
what ever I try does not seem to populate the combo box.

Need your help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How do I make a macro call on different macros

If you select Design mode (the blue-green triangle on the control toolbox
toolbar), and then double-click the combobox, that will create a skeleton
combobox click event. Put your code in there. You get the combobox value
with

Me.Combobox1.Value

You don't need the button.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"fubr69z" wrote in message
...
I am stuck. I can not find this problem is help.
I have a combo box from the control tool box. Right now I am populating it
with a range of cells and I am trying to create a command button from

Forms
Menu to run a macro that is determined by the link cell from the combo

box.
The question I have is how do I create a nested Macro to call the

appropriate
macro depending on what is selected in the combo box. Or can I use the

combo
box to call on macros. If so how? I have been looking through other posts

and
what ever I try does not seem to populate the combo box.

Need your help



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How do I make a macro call on different macros

I got the button to work using if and elseif statements. I'm not sure how to
use the
Me.Combobox1.Value statement. I do not know the code that needs to be add
with it. Can I get that from you. A simple code that will display 3 items in
the drop down list and run a macro when selected and I will figure out the
rest.

Thank you

"Bob Phillips" wrote:

If you select Design mode (the blue-green triangle on the control toolbox
toolbar), and then double-click the combobox, that will create a skeleton
combobox click event. Put your code in there. You get the combobox value
with

Me.Combobox1.Value

You don't need the button.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"fubr69z" wrote in message
...
I am stuck. I can not find this problem is help.
I have a combo box from the control tool box. Right now I am populating it
with a range of cells and I am trying to create a command button from

Forms
Menu to run a macro that is determined by the link cell from the combo

box.
The question I have is how do I create a nested Macro to call the

appropriate
macro depending on what is selected in the combo box. Or can I use the

combo
box to call on macros. If so how? I have been looking through other posts

and
what ever I try does not seem to populate the combo box.

Need your help




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
macro to call other macros Colin Hayes Excel Worksheet Functions 1 May 3rd 11 05:04 PM
make macro run other macros in Exc 2007,no problems in Exc 2003 SteveB Excel Discussion (Misc queries) 2 October 19th 08 02:30 AM
Combining Macros to make one Macro. jdtivoli Excel Programming 1 July 27th 04 11:51 AM
Call VBA-Subs From Old XLM-Macros hglamy[_3_] Excel Programming 2 February 28th 04 08:43 PM
Call macros from another XL file jamesa Excel Programming 2 October 2nd 03 05:51 PM


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