+ Reply to Thread
Results 1 to 3 of 3

Autofill specific textboxes in userform from sheet, and back

  1. #1
    Registered User
    Join Date
    03-17-2020
    Location
    Winterswijk
    MS-Off Ver
    2013
    Posts
    7

    Autofill specific textboxes in userform from sheet, and back

    Hello,
    I have data in only 2 rows. Row 1 are headers, Row 2 is the data.
    I also have several userforms containing a variety of txtboxes
    Some of the textboxes are the headernames preceded by tb
    Depending on the tbname I want to fill it’s value from the corresponding sheetdata.
    If the value is changed in the userform, write it back to the correct spot in the sheet.
    At this point I'm stock, cannot get the textbox name to be userform1.("tb" & (Sheet2.Range("A1").Offset(0, i).Value) to work
    What would be the correct syntax for this?

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Autofill specific textboxes in userform from sheet, and back

    Header from A1 and Value from A2

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    03-17-2020
    Location
    Winterswijk
    MS-Off Ver
    2013
    Posts
    7

    Re: Autofill specific textboxes in userform from sheet, and back

    I knew it was simple, thanks.

+ 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. Send data to specific range using multiple textboxes from userform
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-04-2017, 02:07 AM
  2. Copying contents of specific textboxes from one userform to another
    By Shazza-D in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2016, 11:01 AM
  3. How do I selectively set the back color of 1 of 625 textboxes in a userform
    By joebbb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-03-2016, 02:19 PM
  4. [SOLVED] From UserForm TextBoxes to specific cells on worksheet
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-04-2015, 05:41 PM
  5. Replies: 2
    Last Post: 05-03-2014, 02:19 PM
  6. Populate row value in userform textboxes, edit and save the changes back in sheet.
    By p_nayak268 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2013, 07:48 PM
  7. [SOLVED] Populating userform textboxes with specific record/row in excel worksheet
    By danmack in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-19-2012, 05:25 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