+ Reply to Thread
Results 1 to 6 of 6

Control Toolbox

  1. #1
    Registered User
    Join Date
    07-25-2008
    Location
    Bend, Oregon
    Posts
    39

    Control Toolbox

    I need to assign a macro to a command button that was created using the “control toolbox”. Can anyone help me with this? If you right click on the button a list of selections pops up, one is properties, if you click properties you can see the properties for the button but there isn’t an event tab like in Access database. In Access you just assign a procedure in one of the events. I can do it using the Forms tool bar but I have a spreadsheet that was passed on to me with “command buttons’ made from the “controls toolbox” and I need to know what macro is assigned to which button and how to assign a different macro. Thanks for the help in advance.

  2. #2
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Control Toolbox

    Hi... try adding the DEVELOPER tab to the ribbon, then click on DESIGN, and double click the button in question. It should open in your VB Editor to any coding sitting behind that particular button.
    Good luck!

  3. #3
    Registered User
    Join Date
    07-25-2008
    Location
    Bend, Oregon
    Posts
    39

    Re: Control Toolbox

    Thanks for the help JP. I don’t know what the “ribbon” is or how to add the developer tab to it. Can you explain that a little more? Thanks again for your help.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Control Toolbox

    Right-click the control and select View Code. The signature of the click event handler will be automatically created in the sheet module.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Control Toolbox

    Apologies - I assumed you were using Excel 2007....
    I see shg's here, so I'll back down (it's usually good advice to let the smarter people take the helm!)

  6. #6
    Registered User
    Join Date
    07-25-2008
    Location
    Bend, Oregon
    Posts
    39

    Re: Control Toolbox

    Yea I must apologize, I forgot to declare which version I am using, which is 2003. Thanks for the info shg, I see how it’s done now. And thanks everyone that responded.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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