+ Reply to Thread
Results 1 to 5 of 5

Concatenate values from Text Boxes into 1 cell not working

  1. #1
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Austria
    MS-Off Ver
    Excel 2016
    Posts
    165

    Concatenate values from Text Boxes into 1 cell not working

    Hi everyone,

    in my userform I have 3 textboxes and I want to combine the values in these boxes and show it in sheets("Test") cell A1.
    I found a macro and I have tested it and tried some changes but I have no luck.
    Can you please help me finding why it is not working?
    The Boxes are named txt1, txt2, txt3.

    Please Login or Register  to view this content.
    Thanks a lot
    Kind Regards
    Roman

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Concatenate values from Text Boxes into 1 cell not working

    Something like:

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Austria
    MS-Off Ver
    Excel 2016
    Posts
    165

    Re: Concatenate values from Text Boxes into 1 cell not working

    Hy TMS,
    thanks for the code but I get an error at
    sConcat = sConcat & Me.Controls(csTBName & i).Value

    Kind Regards

  4. #4
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Austria
    MS-Off Ver
    Excel 2016
    Posts
    165

    Re: Concatenate values from Text Boxes into 1 cell not working

    Sorry, I found my mistake.

    Everything works.
    Thanks a lot

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Concatenate values from Text Boxes into 1 cell not working

    You're welcome.

+ 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] concatenate text boxes to find combined value and copy paste alternative value into wb
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-10-2014, 12:19 PM
  2. Pop-up text boxes based on cell values then disappeared after preset time
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-11-2013, 07:19 AM
  3. [SOLVED] Populate cell values into 6 named text boxes in a userform then edit if required
    By How How in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-05-2013, 05:51 AM
  4. [SOLVED] Concatenate & format standard text in cell A1, Sheet1 with strings from two input boxes
    By mandora in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-27-2012, 04:22 AM
  5. Replies: 17
    Last Post: 10-14-2012, 11:15 AM
  6. Writing cell values from dynamic text boxes
    By BillWilts in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2010, 02:30 PM
  7. [SOLVED] Can I concatenate text in cells to make a working formula?
    By Matt S. R. in forum Excel General
    Replies: 11
    Last Post: 11-11-2005, 11:50 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