+ Reply to Thread
Results 1 to 3 of 3

VBA for selecting a range excluding the first and last rows.

  1. #1
    Registered User
    Join Date
    12-11-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    7

    VBA for selecting a range excluding the first and last rows.

    I need so select an entire range excluding the first and last rows to apply formatting.

    Here is the code i tried. I could not get to exclude the first row. I am a newbie to this. Please advise.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    10-31-2010
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    150

    Re: VBA for selecting a range excluding the first and last rows.

    Im not sure you code doesnt include the top row, below would select A2 to the last row minus 1

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-11-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: VBA for selecting a range excluding the first and last rows.

    Thank you!
    That worked

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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