+ Reply to Thread
Results 1 to 4 of 4

VBA code for adding a commandbutton

  1. #1
    Registered User
    Join Date
    09-04-2006
    Posts
    29

    VBA code for adding a commandbutton

    I need the code to add a commandbutton. What I need to do do is add a command button for each of the sheets. At the moment there are 8 sheets so there wil need to be 8 commandbuttons. But this can change from time to time. So I have written a procedure that will add the correct amount of commandbuttons in the corect places. Now all I am missing is the code to create the commandbutton. Can anyone help??


    Ben

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Is this what you are after?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-04-2006
    Posts
    29
    It works perfectly but I forgot to mention that I wanted to add it to a form (say OverviewForm) not a sheet. if you help me with that it would be great


    Thanks Heaps
    Ben

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Took me a while to track it down

    Have a look at

    http://www.mrexcel.com/archive/Controls/111.html

    Especially the part dated October 08, 2001 12:42 AM

+ 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