+ Reply to Thread
Results 1 to 4 of 4

Rows.Count End(xlUp)

  1. #1
    Registered User
    Join Date
    08-13-2019
    Location
    Australia
    MS-Off Ver
    MS 2019
    Posts
    6

    Rows.Count End(xlUp)

    Hi All,

    I am following a tutorial on creating forms and using the data to populate a table. Problem is when I execute my code the data fills but from the bottom of the table and up. Does anyone know why it is doing this?

    Please Login or Register  to view this content.
    Thank you, any guidance would be greatly appreciated
    Last edited by AliGW; 08-23-2019 at 02:14 AM.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,516

    Re: Rows.Count End(xlUp)

    Change references as and where required.
    I have not worked with tables at all but would this do it?
    Please Login or Register  to view this content.
    to replace following
    Please Login or Register  to view this content.

    If there are no empties in Column 2 in the Table, this should work also I think.
    Change references as and where required.
    Please Login or Register  to view this content.
    Last edited by jolivanes; 08-13-2019 at 01:33 AM. Reason: extra info

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

    Re: Rows.Count End(xlUp)

    Welcome to our Forum...gabriellewills

    Please take a moment to read our forum rules...here
    Your post does not comply with Rule # 2
    2. Programming code must be enclosed in code tags to improve readability. (A, Z)
    Please Login or Register  to view this content.
    So...Edit your post...Highlight the code and press the # button
    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!!!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Rows.Count End(xlUp)

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Rows.count & .end(xlUp).Row
    By Eduards in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-09-2018, 08:50 AM
  2. [SOLVED] End method argument: If xlUp = -4162, why does End(xlUp) = End(3)?
    By joe31623 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-11-2016, 06:02 AM
  3. Select all rows up to last row that has data (xlUp command)
    By astrbac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2015, 12:25 PM
  4. range("e1" & cells(rows.Count,5).end(xlup)).Select
    By sohaila in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2014, 09:27 AM
  5. Error rsh = Sheets(st).Range("A" & Rows.Count).End(xlUp).Row + 1
    By Jocatlett in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-12-2013, 10:52 AM
  6. XlUp 55 rows and delete
    By Chad Kruse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2010, 01:25 PM
  7. [SOLVED] Cells(Rows.Count, "b").End(xlUp).Row
    By Kate in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2006, 11:31 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