+ Reply to Thread
Results 1 to 3 of 3

Cycling through dynamic controls

  1. #1
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    Cycling through dynamic controls

    Hi all

    I have created a series of dynamic controls, which (along with other code) creates a series of lables within a frame. It works well.

    Please Login or Register  to view this content.
    In the above example, each label is title lblTime Hours + minutes, e.g. lblTime745. I have a whole pile of them.

    I now need to change one of them but I don't know which one. I need to cycle through until I find the right label

    In another module, I tried using
    Please Login or Register  to view this content.
    The attempt ended in sorrow and dispair. What is the procedure call to find the previously created label?

    Cheers

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Cycling through dynamic controls

    Can you not reference as :

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Havent tested these.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    Re: Cycling through dynamic controls

    Thanks Nathan,

    Take a rep for your response! I was thinking along the lines of cycling through each label of the class, but this will work just as well and it's quick and easy, so thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 10-10-2012, 07:09 AM
  2. [SOLVED] Dynamic Controls with event handlers
    By stuart010 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2012, 11:43 AM
  3. (Closed)Dynamic Userform Controls With Event Handlers
    By stuart010 in forum Excel General
    Replies: 0
    Last Post: 04-30-2012, 11:32 AM
  4. Dynamic Controls (CheckBox) using VBA in Excel
    By akkurup in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-27-2005, 08:01 AM
  5. Cycling through controls in worksheet
    By DeeJay in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-22-2005, 05:15 PM

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