+ Reply to Thread
Results 1 to 3 of 3

Setting a button

  1. #1
    Registered User
    Join Date
    06-07-2007
    Location
    Sweden
    MS-Off Ver
    Excel 2003
    Posts
    15

    Setting a button

    Hi all!

    I am having a problem calling buttons. I have an array with button names and another array with their caption texts and I would like to call them one by one in a for loop:

    For i = 1 To UBound(button_array)
    Sheets("Statistic").Shades(button_array(i)).Caption = button_text(i)
    Next i

    But the only way I seem to be able to call them is by their set names, like:

    Sheets("Statistic").statistic.Caption = button_text_ENG(i)

    Is it possible to do what I want? It is all meant to be a way of changing between two languages on the button text.
    Last edited by jennyc2; 05-13-2009 at 02:55 AM.

  2. #2
    Forum Contributor
    Join Date
    05-05-2009
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010 and 365
    Posts
    113

    Re: Setting a button

    Maybe try this



    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-07-2007
    Location
    Sweden
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Setting a button

    You are amazing - it absolutely works brilliantly!

+ 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