+ Reply to Thread
Results 1 to 3 of 3

how to add the userforms to combobox and open it when pressing the command button ?

  1. #1
    Registered User
    Join Date
    04-23-2013
    Location
    Jordan
    MS-Off Ver
    Excel 2010
    Posts
    77

    how to add the userforms to combobox and open it when pressing the command button ?

    how to add the userforms to combobox and open it when pressing the command button ?

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: how to add the userforms to combobox and open it when pressing the command button ?

    I assume you mean a activex button on the sheet?

    Developers Tab -> Design Mode -> View Code.

    At top of window, select Commandbutton1. IDE should insert the Click event. Enter the name of the macro you want to run in the click event.

    E.g.
    Private Sub CommandButton1_Click()
    RunMyMacro
    End Sub

    You can also double click the control for a shortcut. Just make sure you're in design mode. And don't forget to turn Design mode back off.

    Good luck!
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    04-23-2013
    Location
    Jordan
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: how to add the userforms to combobox and open it when pressing the command button ?

    thank you Tinbender, seems my question was not clear ..
    but I solve it at the userform as below :

    I used a Cell range for the forms names :
    Please Login or Register  to view this content.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1