+ Reply to Thread
Results 1 to 4 of 4

Loop to change command buttons

  1. #1
    Forum Contributor
    Join Date
    09-18-2007
    Posts
    116

    Loop to change command buttons

    hello,

    I have a userform with 300 Command buttons on and would like to setup a loop to change the captions and colours of the buttons.

    The buttons are all name A1 to A300

    set the command button name so a loop and move it on 1 number each time

    Thanks

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,984

    Re: Loop to change command buttons

    What do you want to change the captions and colours to?
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    09-18-2007
    Posts
    116

    Re: Loop to change command buttons

    Quote Originally Posted by romperstomper View Post
    What do you want to change the captions and colours to?
    the camption would be to another string and the colour would be gray or red

    Thanks

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,984

    Re: Loop to change command buttons

    You basically need a loop like:
    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