+ Reply to Thread
Results 1 to 5 of 5

Selecting last row problem

  1. #1
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Selecting last row problem

    Hello Gurus,

    I'm having a problem when selecting the last row of Column A. I'm using the below code and it gives me an error 'Object required' in the highlighted line.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Selecting last row problem

    change your line to
    .Range("A" & .Rows.Count).End(xlUp).Select

  3. #3
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Selecting last row problem

    Thanks Jijenn!

    IF the last row of column A is A50, how can i select A51?

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Selecting last row problem

    .Range("A" & .Rows.Count).End(xlUp).Offset(1,0).Select

  5. #5
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Selecting last row problem

    I've now figured it out.

    Please Login or Register  to view this content.
    Thanks again Jiejenn!

+ 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] problem with selecting next row code
    By smaier69 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2012, 08:34 PM
  2. Selecting multiple row problem
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2008, 07:56 AM
  3. [SOLVED] Selecting range problem
    By dorre in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2006, 10:40 PM
  4. big problem selecting and saving data
    By Pierre via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-30-2005, 07:05 PM
  5. VBA problem selecting column
    By bbertran in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2005, 01:33 PM

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