+ Reply to Thread
Results 1 to 6 of 6

Userform change label caption based on cell

  1. #1
    Registered User
    Join Date
    12-02-2013
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    4

    Userform change label caption based on cell

    Hi all,

    I would like it so that on m userform, if i select a 'Unique ID' (eg. ID12), there will be a few labels below that will return data based on cells in the spreadsheet.
    So for example, if i was to select ID12, i would like one label with the caption saying the date, another label with the process (eg, quotations) ect.
    All of the data is in a spreadsheet..

    Is this possible?

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Userform change label caption based on cell

    It would be great if attached sample workbook it will be very easy resolve your query
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Registered User
    Join Date
    12-02-2013
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Userform change label caption based on cell

    Hi, thanks for your reply.

    I have attached the spreadsheet...Turnback Status Checker.xlsm

  4. #4
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Userform change label caption based on cell

    hi,
    add 3 labels to yr userform, let's say label6,7,8 and add this piece of code to yr combobox, hope it helps you!
    Please Login or Register  to view this content.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  5. #5
    Registered User
    Join Date
    12-02-2013
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Userform change label caption based on cell

    Wow.... You sir, are a genius

    Thank you very much for your help, i am very greatful - you have been a massive help.

  6. #6
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Userform change label caption based on cell

    Glad I could help you! Thx for the rep!
    if you are happy with the solution provided, please mark the thread as "Solved"! thx!

+ 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] Change label caption's font color based on value in another textbox
    By MileHigh_PhD in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-19-2013, 01:59 PM
  2. [SOLVED] Userform Label Caption - How To Set It To Display Military Time?
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-15-2013, 06:27 PM
  3. Dynamic Userform doesnt update label caption
    By Heresy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-10-2009, 11:59 AM
  4. [SOLVED] Change label caption on userForm while code runs
    By Sliman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-16-2006, 01:45 PM
  5. Changing label caption in a Userform to an opterator value
    By jumpjump in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2005, 08:50 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