+ Reply to Thread
Results 1 to 4 of 4

Update UserForm label text based on dropdown and formula

  1. #1
    Registered User
    Join Date
    10-14-2014
    Location
    Oxford, England
    MS-Off Ver
    365
    Posts
    66

    Update UserForm label text based on dropdown and formula

    Hi,

    I looking to create a UserForm to generate location coordinates. Please see example attached.

    Clicking 'Receipt' brings up a UserForm. The idea is that you would scan in the item number, select the room location, and that would flash up the assigned sublocation. Clicking 'Mark as Received' would then transfer that information to the bottom of columns A/B/C.

    The formula for calculating the sublocation can be found in cell F11. I've found it very difficult to convert this to a VBA formula, or know how to use it properly in VBA.

    Any help would be massively appreciated.

    Many thanks,
    Jamie
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    Re: Update UserForm label text based on dropdown and formula

    Hi Jamie,

    Try attached.
    Attached Files Attached Files
    Cheers,

    Joshi
    Being with a winner makes you a winner

  3. #3
    Registered User
    Join Date
    10-14-2014
    Location
    Oxford, England
    MS-Off Ver
    365
    Posts
    66

    Re: Update UserForm label text based on dropdown and formula

    Hi Joshi,

    Thanks for your help!

    Updating the Label4 caption and clicking the 'Mark as Received' work well. The method for calculating the location isn't quite right, though. The 'AA' portion is actually a box ID that starts at AA and can go up to ZZ (AX, AY, AZ, BA, BB etc). This increments up by 1 letter when the final part of the location reaches 100, eg 1-AA99, 1-AA100, 1-AB1, etc.

    Is there a way to calculate this location using VBA itself, and referring to ComboBox1.value etc, rather than needing to add helper cells to the sheet?

    Thanks,
    Jamie

  4. #4
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    Re: Update UserForm label text based on dropdown and formula

    Hi Jamie,

    sorry, this much only I can help, as I am not a vba expert. Let our forum Gurus find a solution for you.


    Hi All gurus and experts,

    Please help us.

+ 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 - Update Label with sheets
    By Bolo19911 in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 02-04-2019, 10:04 AM
  2. VBA Code to automatically update label in the userform
    By sn152 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2014, 06:29 PM
  3. Update formula in excel based on dropdown selection
    By XLNB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2014, 03:17 PM
  4. Use variable as name for label in userform, dynamically update different labels
    By seaofgreen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2013, 04:12 PM
  5. Trying to Update Userform Label with worksheet cells
    By bmoon171 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-22-2013, 07:59 PM
  6. Update excel based on userform text box update
    By sivakumar123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2013, 01:01 AM
  7. Real time update of Userform label with cell value
    By KyleLee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2009, 09:58 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