+ Reply to Thread
Results 1 to 4 of 4

insert multiple text box into one single cell

  1. #1
    Registered User
    Join Date
    01-21-2015
    Location
    Singapore, Singapore
    MS-Off Ver
    2010, 2007
    Posts
    13

    insert multiple text box into one single cell

    Hi all,

    My coding used:
    Worksheets("PreOrder Details").Activate
    NextRow = Application.WorksheetFunction.CountA(Range("A:A")) + 1
    Cells(NextRow, 1) = CustomerName.Text
    Cells(NextRow, 2) = Order1.Text



    My problem is that i have many orders from this one customer under one userform.
    I have Order1, Order2, Order3, Order4 etc. My coding is directing Order1 to one cell. I want to direct the text in Order1 Order2 Order3 into a single cell.

    I have tried Cells(NextRow, 2) = Order1.Text And Order2.Text
    But they said error. Lol.
    Please help, Im new to this.

    Thanks Much

  2. #2
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: insert multiple text box into one single cell

    Hello,Welcome....I am not sure why you want to assign to one cell .. if you do like that It will just over write the previous values...
    and last executed code will be your current value... but it makes no sense...

    anyway.. you need to multiply your statement... to do assign....
    Please Login or Register  to view this content.
    if you can post your full code and your desired result... it will be easy to help you accurately...

  3. #3
    Registered User
    Join Date
    01-21-2015
    Location
    Singapore, Singapore
    MS-Off Ver
    2010, 2007
    Posts
    13

    Re: insert multiple text box into one single cell

    item order.png

    I want to do this because there will be many purchase from one customer and i want to see all the orders from one customer under the items purchased cell.
    I tried using your code but yeah, it overwrites.

  4. #4
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: insert multiple text box into one single cell

    but your logic is wrong to approach your result... would you mind posting your Excel Data and write down few steps how you want your output should be.....

    Click on Go advanced to attach a file....

+ 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] how to insert a single text from 1 cell to another
    By Br0ther_bruce in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2014, 05:06 PM
  2. Insert multiple pictures in a single cell
    By Rpatel1974 in forum Excel General
    Replies: 1
    Last Post: 07-01-2014, 01:34 PM
  3. How to insert multiple checkbox in a single cell
    By pgft in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2013, 09:39 AM
  4. [SOLVED] Insert a NAME into a text string in a single cell
    By cptkeith in forum Excel General
    Replies: 1
    Last Post: 12-17-2012, 06:04 PM
  5. Insert and Update multiple rows based on single cell value
    By JesperBrink in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-25-2012, 07:41 AM

Tags for this Thread

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