+ Reply to Thread
Results 1 to 6 of 6

Insert Form Data to next row of table

  1. #1
    Registered User
    Join Date
    05-21-2013
    Location
    Chippenham
    MS-Off Ver
    Excel 2016
    Posts
    3

    Insert Form Data to next row of table

    Hello,

    I am sure that there is a simple answer to this. I have a user form where data is entered and once complete i need to append the entered data to the end of "Table1". Wihtout the table I am able to use XlUp and offset each entered value to get the results i need. as soon as I create a table the data is spread over multiple rows.

    The code i have for each user form value is: -

    Please Login or Register  to view this content.
    I have tried the following to enter the data into the last row of Table1 but it only puts the dat ain the header row and does not select the last row in the table. each user form value has a difference column header

    Please Login or Register  to view this content.
    Any help is greatly appreciated, Thank you.
    Last edited by [email protected]; 11-19-2020 at 11:32 AM.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Insert Form Data to next row of table

    .
    Here is a sample, basic database project that does what you are wanting.

    Study the code and apply it to your situation.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Insert Form Data to next row of table

    I do hope your username is not your REAL email address, unless you want a lot of spam, offering "unusual" services....
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Insert Form Data to next row of table

    Attached simple UserForm
    See the ADD button routine for code adding rows to tables.
    @Logit, the 'COUNTA' method only works if there are no blank cell or as often happens some people have blank rows above their tables.
    torachan.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-21-2013
    Location
    Chippenham
    MS-Off Ver
    Excel 2016
    Posts
    3

    Re: Insert Form Data to next row of table

    Many thanks to all,

    Both option have resolved my issue.

    Thank you

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Insert Form Data to next row of table

    .
    Glad you have an answer. Best wishes.

+ 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] Last used row cell and insert data from user form
    By rob_h in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-22-2018, 11:10 AM
  2. Alternative to VLOOKUP when data is in min/ max (i.e. 0-5) form vs. table form
    By kelseygueldalewis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2017, 10:58 AM
  3. How to insert table or form wth worksheet data in email body
    By Antee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2013, 05:54 PM
  4. Insert a table into an Excel User Form
    By Blake 7 in forum Excel General
    Replies: 2
    Last Post: 09-25-2011, 01:24 PM
  5. VBA code to insert data from form
    By edwedw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2010, 08:48 PM
  6. User Form - Insert Row then Data
    By cooper1308 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-04-2009, 08:38 PM
  7. fast way to insert data by form
    By wiv in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2008, 03:44 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