+ Reply to Thread
Results 1 to 9 of 9

Insert Data To Table On The Top Line Instead Of Bottom?

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    Wichita, Kansas
    MS-Off Ver
    Excel 2010, 2016, 2021-22
    Posts
    87

    Insert Data To Table On The Top Line Instead Of Bottom?

    I have a userform that inserts data into a table, and added a sub that sorts the list from newest to oldest. Is there anyway to insert the information to the top of the table instead? This way you don't have to scroll down everytime to find the newest addition.

    Here's what I got currently

    Please Login or Register  to view this content.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: Insert Data To Table On The Top Line Instead Of Bottom?

    I have a userform that inserts data into a table
    Your above code suggests you are using a range and not a listobject(Table)
    Which is it...
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    06-12-2012
    Location
    Wichita, Kansas
    MS-Off Ver
    Excel 2010, 2016, 2021-22
    Posts
    87

    Re: Insert Data To Table On The Top Line Instead Of Bottom?

    Sorry for the confusion, it's a range but mysteriously it adds it to my table so I kept it.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: Insert Data To Table On The Top Line Instead Of Bottom?

    Assumes your data starts in A1
    Please Login or Register  to view this content.
    If not, please supply us with a sample file of your actual file setup...
    Last edited by sintek; 12-15-2021 at 12:25 PM.

  5. #5
    Registered User
    Join Date
    06-12-2012
    Location
    Wichita, Kansas
    MS-Off Ver
    Excel 2010, 2016, 2021-22
    Posts
    87

    Re: Insert Data To Table On The Top Line Instead Of Bottom?

    I'll attach it so you can see what I have.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-12-2012
    Location
    Wichita, Kansas
    MS-Off Ver
    Excel 2010, 2016, 2021-22
    Posts
    87

    Re: Insert Data To Table On The Top Line Instead Of Bottom?

    one thing I forgot to add was one column (F) is being skipped because theres a formula in that column.

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: Insert Data To Table On The Top Line Instead Of Bottom?

    It is a listobject...

    Edit...
    one thing I forgot to add was one column (F) is being skipped because theres a formula in that column.
    Try this...Just check your actual order of your boxes to columns...Something seems misaligned...
    Please Login or Register  to view this content.
    Last edited by sintek; 12-15-2021 at 12:46 PM.

  8. #8
    Registered User
    Join Date
    06-12-2012
    Location
    Wichita, Kansas
    MS-Off Ver
    Excel 2010, 2016, 2021-22
    Posts
    87

    Re: Insert Data To Table On The Top Line Instead Of Bottom?

    Worked great!! Thank you!!

  9. #9
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: Insert Data To Table On The Top Line Instead Of Bottom?

    Glad I could contribute...Tx for rep +

+ 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 do you use a macro to add an extra line at bottom of excel table
    By gillcork22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2017, 01:42 PM
  2. Insert line and copy data of previous line with certain changes
    By vijayca in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-22-2016, 07:19 AM
  3. Macro to close table with Bottom line
    By graiggoriz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-15-2014, 03:43 AM
  4. VBA code to insert line at top and bottom
    By sbfedder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2013, 01:14 PM
  5. New Line at the bottom of a Table
    By CodeEnforcer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2013, 02:27 PM
  6. [SOLVED] Insert new row at bottom of data range
    By Shaun Gemiver in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2013, 12:30 PM
  7. [SOLVED] Insert rows at the bottom of an expanding table with merged cells
    By cappy82 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-11-2011, 03:59 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