+ Reply to Thread
Results 1 to 5 of 5

How to loop through data and display on userform using label captions

  1. #1
    Forum Contributor
    Join Date
    08-04-2018
    Location
    San Dieg CA
    MS-Off Ver
    Microsoft Office Professional Plus 2016 (Excel 2016 MSO 32 bit)
    Posts
    167

    How to loop through data and display on userform using label captions

    Hello everyone
    Having some trouble with the below code and I am hoping I can get some help. On Sheet1 I have some basic data (numbers and text). I want to display the data on a userform using label captions. The I have code will loop though the first row and display the headings only. How can I configure it to loop through the entire data set. And also, I’d like the number values to appear as currency, (ie. $10,500.00). I've attached the file for more clarity. Any assistance with this project is greatly appreciated.
    Roro

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to loop through data and display on userform using label captions

    I do not see the point of this.

    You can achieve the same result using a ListBox.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 09-26-2020 at 08:53 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    08-04-2018
    Location
    San Dieg CA
    MS-Off Ver
    Microsoft Office Professional Plus 2016 (Excel 2016 MSO 32 bit)
    Posts
    167

    Re: How to loop through data and display on userform using label captions

    mehmetcik,

    i'm well aware that i could use a listbox, i don't want a listbox. thank you for your help.

    v

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to loop through data and display on userform using label captions

    Ok

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-04-2018
    Location
    San Dieg CA
    MS-Off Ver
    Microsoft Office Professional Plus 2016 (Excel 2016 MSO 32 bit)
    Posts
    167

    Re: How to loop through data and display on userform using label captions

    mehmetcik,

    the reason i didn't want a listbox is bc i already have two listbox on the form and wanted a different way to display data. this works perfectly. thank you again for your help.

    roro

+ 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. [SOLVED] Excel UserForm Label AutoSize problem - cropping Captions
    By IGNF in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2019, 05:17 AM
  2. [SOLVED] Help searching for a row, then label captions using row data
    By radabm in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-09-2017, 06:34 PM
  3. [SOLVED] Counting 2 label captions on userform
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2015, 02:49 AM
  4. How do you display data in a label on a userform?
    By kryt0n in forum Excel Programming / VBA / Macros
    Replies: 35
    Last Post: 08-13-2010, 06:48 AM
  5. Display data using label on userform
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-27-2008, 04:39 PM
  6. Format label captions
    By Stuie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2006, 02:49 PM
  7. rename label captions
    By jinx_uk_98 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-20-2005, 05: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