Consulting

Results 1 to 3 of 3

Thread: Solved: Macro Calling

  1. #1

    Solved: Macro Calling

    Hi all,

    Is it possible to call a macro with the individual entries on a combobox by selecting the different texts in the list, assigning one macro per line of text.

    Something like if "text1" then call macro1, if "text2" then call macro2 etc...

    I am still learning so, if you could post an example that would be great.

    Thank you for all of your help, you all been great.
    Life is not as complicated as we think it is, we make it complicated.

    IF you can change it, then strive for excellence.
    IF not, then let it happen, don't worry about it and live a happier life.


    Let's Have Fun!
    Julio

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    Select Case Combobox1.Value
    Case "text1: Call Macro1
    Case "text2": Call Macro2
    'etc
    End Select
    [/vba]

  3. #3
    Thanks is working great.
    Life is not as complicated as we think it is, we make it complicated.

    IF you can change it, then strive for excellence.
    IF not, then let it happen, don't worry about it and live a happier life.


    Let's Have Fun!
    Julio

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •