+ Reply to Thread
Results 1 to 6 of 6

Rows.count & .end(xlUp).Row

  1. #1
    Forum Contributor
    Join Date
    11-01-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    280

    Rows.count & .end(xlUp).Row

    eg3 = eg1.Range("C" & Rows.Count).End(xlUp).Row

    ^ Can anyone explain this function?
    I understand up to first open bracket, but the rest I'm new to.

    Thank you

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Rows.count & .end(xlUp).Row

    This determines the last row used in a column. In this case Column C.

    Manually, count the rows in column C that are used by going to the bottom of the file and then scrolling up to the last non-empty row.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,268

    Re: Rows.count & .end(xlUp).Row

    you can record makro put your cursor in columns c (end of row) and ctrl + up
    this similar with above
    Please Login or Register  to view this content.
    "ThankyouFor Attention * And Your Help!!"

  4. #4
    Forum Contributor
    Join Date
    11-01-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    280

    Re: Rows.count & .end(xlUp).Row

    is xlUp mean up? if so what is xl mean?

  5. #5
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,268
    Quote Originally Posted by Eduards View Post
    is xlUp mean up? if so what is xl mean?
    Its propertis from object or command of excel
    Like xlblanks,
    Or xlup ,or xldown,etc
    Xl maybe same as excel
    Up = top
    Down = bottom
    [a100000].end(xlup)
    From a100000 up until first non blank cells
    You can do
    Use ctr + up

  6. #6
    Forum Contributor
    Join Date
    11-01-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    280

    Re: Rows.count & .end(xlUp).Row

    Okay thanks for the help
    Last edited by Eduards; 11-09-2018 at 08:54 AM.

+ 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] 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
  2. 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
  3. Selection.delete Shift:=xlUp Statement Crashing After Certain Number of Rows
    By moosealam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2014, 06:14 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