+ Reply to Thread
Results 1 to 5 of 5

VBA Looping between Labels Userform

  1. #1
    Registered User
    Join Date
    04-06-2014
    Location
    Sao Paulo, Brasil
    MS-Off Ver
    Excel 2010
    Posts
    19

    VBA Looping between Labels Userform

    Hi,

    I am new to VBA and hope that someone can help me.
    I have a series of 12 different text boxes and labels within a userform that I would like to loop bewtween.
    As I am not able to do this I have written the code out in full.

    I would greatly appreciate if somebody were able to give me some assistance.

    Many thanks,


    Benedict
    Please Login or Register  to view this content.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: VBA Looping between Labels Userform

    I'm not sure if this is what you're looking for, but...

    1. create a subroutine in a module.
    Please Login or Register  to view this content.
    2. Change the Change events to this, passing the number of the control to the subroutine.
    Please Login or Register  to view this content.
    3. Then if you have a command button, for instance, to write all the values back to the sheet.
    Please Login or Register  to view this content.
    None of this is tested. I wrote this off the cuff. So don't respond by saying, "It does not work!", unless you attach a sample workbook.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    04-06-2014
    Location
    Sao Paulo, Brasil
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: VBA Looping between Labels Userform

    VBALooping.xlsm

    Dear David,

    Thank you for the help.

    I have attached the workbook.

    Many thanks,

    Benedict

  4. #4
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: VBA Looping between Labels Userform

    What are you trying to accomplish?

    Sent from my XT1049 using Tapatalk

  5. #5
    Registered User
    Join Date
    04-06-2014
    Location
    Sao Paulo, Brasil
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: VBA Looping between Labels Userform

    Hi David,

    It worked! Thank you so much.

    Benedict

+ 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. Looping through userform option buttons, textbox and labels
    By Gal403 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2014, 09:03 AM
  2. VBA Looping with Labels on Userform
    By msommerf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2010, 09:28 AM
  3. Looping through Labels
    By gti_jobert in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-20-2006, 08:20 AM
  4. worksheet looping with varying labels (aka Need to Find the John!)
    By alphapoint05 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-08-2005, 09:05 PM
  5. Looping procedure calls userform; how to exit loop (via userform button)?
    By KR in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-27-2005, 08:05 AM

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