+ Reply to Thread
Results 1 to 7 of 7

VBA Userform with multiple labels

  1. #1
    Forum Contributor
    Join Date
    08-22-2013
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    161

    VBA Userform with multiple labels

    Hi everyone,

    I was wondering if anyone could help me with a project i'm currently working on that uses a userform. I've attached a dummy file and populated the labels with the information (But it needs to be dynamic)

    • Is it possible when the userform loads, it counts how many Metrics have been missed and populates a label in the userform (Currently i have a formula that the userform counts if the actual is less than target but ideally i wouldn't want a formula to drive this)
    • Picks the first one thats missed target, populates the target(col B) and actual (col C) numbers for the metric (col A)
    • Depending on which metric it is pulls through the definition
    • The spinnerbox changes up or down missed metrics, changing the target/actual & definition
    • When the reason has been placed and the submit button is hit, it populates the comment from the textbox into the other sheet under comments?

    I'm sorry if this is long winded, I've literally I've come to a dead end with it

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA Userform with multiple labels

    Hello jsneak,

    Here is the updated UserForm code. It has been added to the attached workbook.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    08-22-2013
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    161

    Re: VBA Userform with multiple labels

    Leith, you Sir are an absolute legend! Thanks so much.

    If i'm being really picky, is there any chance that when the Spinner goes up and down that the number changes? Aslo, cheeky little request - when submit is hit, can it go to the next one?

    But honestly, thanks for the help i really appreciate it

    I've been able to adapt your code so that the spinner number goes up, is this the way you would do it?

    Please Login or Register  to view this content.
    Last edited by jsneak; 07-25-2019 at 01:40 PM.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA Userform with multiple labels

    Hello jsneak,

    I had thought about doing that before I posted but I decided to error on the side of caution. I will make those changes.

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA Userform with multiple labels

    Hello jsneak,

    Here is the updated USerForm code.

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    08-22-2013
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    161

    Re: VBA Userform with multiple labels

    Leith, i can't thank you enough for your help regarding this mate.

    Legend mate, thanks!

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA Userform with multiple labels

    Hello jsneak,

    You're welcome. Glad to help out.

+ 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] Userform labels to repeat/autofill exactly into other labels on the same userform
    By indub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2015, 02:18 PM
  2. Replies: 11
    Last Post: 04-11-2015, 05:48 PM
  3. [SOLVED] Grouping over 100 Userform Labels
    By Shea2288 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-18-2014, 02:33 AM
  4. [SOLVED] VBA Looping between Labels Userform
    By B Eccles-Williams in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2014, 08:27 PM
  5. Transparent Labels in Userform
    By captainhillman in forum Excel General
    Replies: 1
    Last Post: 10-27-2010, 05:50 PM
  6. VBA Looping with Labels on Userform
    By msommerf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2010, 09:28 AM
  7. Change values of labels in a userform through another userform
    By Zhennie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-29-2009, 05:34 AM

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