+ Reply to Thread
Results 1 to 5 of 5

Create a text box for each row of data and fill that textbox with concatenated cell value.

  1. #1
    Registered User
    Join Date
    09-01-2010
    Location
    England
    MS-Off Ver
    Excel 2010/13
    Posts
    17

    Smile Create a text box for each row of data and fill that textbox with concatenated cell value.

    Hi all,

    I have n number of rows in a table and n number of columns.

    For each row I would like to create a unique textbox and the values of everything in that row being populated into that textbox.
    I figured I could concatenate the row and get the information for the textbox from there.

    Many thanks

    Andy

  2. #2
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Re: Create a text box for each row of data and fill that textbox with concatenated cell va

    As I don't know where the data lies, I assumed that the cells are selected. If not, replace the Selection.Rows with e.g. Range("A1:H1000").rows

    Please Login or Register  to view this content.
    If you think that my answer was helpful, please click on the "Add to this user's Reputation" button.

  3. #3
    Registered User
    Join Date
    09-01-2010
    Location
    England
    MS-Off Ver
    Excel 2010/13
    Posts
    17

    Re: Create a text box for each row of data and fill that textbox with concatenated cell va

    That works perfectly, thank you Bishonen.

  4. #4
    Registered User
    Join Date
    09-01-2010
    Location
    England
    MS-Off Ver
    Excel 2010/13
    Posts
    17

    Re: Create a text box for each row of data and fill that textbox with concatenated cell va

    Hi,

    I was wondering if the code above could be modified to create a dynamic link between the cells and the textboxes?

    The code above creates a text box for each row in my table and populates that text box with values in a specific column.

    Here are my changes so far:
    Please Login or Register  to view this content.
    As you can see I get the cell info from column C. For each row a unique textbox is created for that value from C.

    Trouble is once the box has been created the only way to change the value inside is to manually edit it. As you can see there may be hundreds of text boxes and although I could simply run the routine again and create new boxes with the updated info I still need to locate the original box and delete it.

    I's simply like to be able to make the changes in the table and have the corresponding textbox update automatically.

    Any ideas?

    thanks

    Andy

  5. #5
    Registered User
    Join Date
    09-01-2010
    Location
    England
    MS-Off Ver
    Excel 2010/13
    Posts
    17

    Re: Create a text box for each row of data and fill that textbox with concatenated cell va

    sorry for double post.
    Last edited by Goldbadger; 07-08-2015 at 07:20 AM. Reason: double post

+ 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. Replies: 10
    Last Post: 11-28-2012, 08:06 AM
  2. How to display text in a cell with a mailto concatenated hyperlink?
    By JRR007 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-22-2012, 11:18 AM
  3. Need a function to concatenated cell preserving the color in the source text
    By pglufkin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2012, 09:54 PM
  4. Copying text from concatenated cell
    By gmanob in forum Excel General
    Replies: 2
    Last Post: 07-10-2007, 03:20 PM
  5. Fill Textbox from cell
    By V. Roe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2005, 04:05 PM

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