+ Reply to Thread
Results 1 to 4 of 4

Name each label after each cell using loop

  1. #1
    Registered User
    Join Date
    08-03-2012
    Location
    Cork Ireland
    MS-Off Ver
    Excel 2007
    Posts
    66

    Name each label after each cell using loop

    Hi All,
    back again to pick your brains, need help.

    what i have is a userform with 42 (yes 42) labels. (actually 84)

    I want to name each of these labels after 42 cells in the excel file, i have another 42 labels on the sheet that i want to have equal values for each label name.

    here is what i attempted

    Please Login or Register  to view this content.
    feel free to point out my issue but its the line with
    Please Login or Register  to view this content.
    which is failing

    any help is appreciated.

    i was using the
    Please Login or Register  to view this content.
    but it began naming the last 42 labels after blank values......

    anyway again all help appreciated.

    many thanks
    Dave

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Name each label after each cell using loop

    How about:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    08-03-2012
    Location
    Cork Ireland
    MS-Off Ver
    Excel 2007
    Posts
    66

    Re: Name each label after each cell using loop

    Hi Kaper, many thanks, reputation added.

    can i try that for other controls?

    ie.
    Please Login or Register  to view this content.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Name each label after each cell using loop

    Thanks for reputation.

    Yes, you can.
    with textbox you can use either value or text property.

+ 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. Label checkbox loop
    By Pavpav in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-25-2014, 09:30 AM
  2. Replies: 1
    Last Post: 09-30-2013, 09:52 AM
  3. status of a do while not loop in a label
    By punna111 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2013, 06:34 PM
  4. Loop through data points and change color based on label
    By rodrignj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2013, 09:38 AM
  5. On Error GoTo Label in a loop only working once.
    By Ken Johnson in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-05-2006, 04:45 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