+ Reply to Thread
Results 1 to 3 of 3

userform merge vaule of combobox and sheet cell value

  1. #1
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    368

    userform merge vaule of combobox and sheet cell value

    Hi,
    I have a userform that has a few txtboxs, combobox etc.

    TextBox12 displays a value of a helper cell on sheet 2 cell J2
    ComboBox7 drops down to display users names

    Is there a way I can convert the full name(eg:Joe Bloggs) selected in ComboBox7 to Initials(eg: JB)
    and merge it with the value in TextBox12, for example the result will be JB01

    Please Login or Register  to view this content.

  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: userform merge vaule of combobox and sheet cell value

    Hello russhris,

    This should work...
    Please Login or Register  to view this content.
    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
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    368

    Re: userform merge vaule of combobox and sheet cell value

    Hi Leith,

    Thank you very much. Works like a charm when you submit it to the spreadsheet.

    Is there a way to have that update the record number txtbox on the userform before submitting? As in, it will say record "5" using the helper cell on sheet 2 and when you select a name from the list(combobox7) and click on the selection the record number will change to "AH05"

    Also, I know this is probably out of scope for this thread. But I set the formatting of the helper column to prefix the record number with a zero"0" but it doesn't display that zero on the user form.

+ 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. ComboBox in USERFORM used to change which sheet output goes
    By InvalidTxtString in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-06-2016, 06:31 PM
  2. Replies: 0
    Last Post: 08-18-2015, 04:13 PM
  3. [SOLVED] How to use a list from Excel Sheet with Userform ComboBox
    By JRidge in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-26-2014, 09:04 AM
  4. [SOLVED] concatenate combobox from form to a merge cell
    By aimjhun in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2014, 03:17 AM
  5. [SOLVED] userform combobox to look up list in sheet
    By H_Kennedy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-21-2013, 02:30 AM
  6. Copy and Paste from one sheet to another sheet - userform - combobox
    By ahhbunny in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2013, 09:49 PM
  7. Macro to move rows from one sheet to another sheet based on a cell vaule
    By d55272 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-09-2012, 03:33 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