+ Reply to Thread
Results 1 to 4 of 4

How to Select Column Range Starting at Row 2

  1. #1
    Registered User
    Join Date
    09-12-2009
    Location
    NorCal
    MS-Off Ver
    Excel 2013
    Posts
    12

    How to Select Column Range Starting at Row 2

    Hi, I have the following code. It works great, however, if I insert a row so that my table starts on row 2 instead of row 1, I get an error. How do I make it work with my table starting on row 2?

    Please Login or Register  to view this content.
    Thanks!

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: How to Select Column Range Starting at Row 2

    If the table starts at row 2 and it has a Header row then the actual data starts at row 3.

    For i = 3 To lr
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    09-12-2009
    Location
    NorCal
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: How to Select Column Range Starting at Row 2

    Quote Originally Posted by AlphaFrog View Post
    If the table starts at row 2 and it has a Header row then the actual data starts at row 3.

    For i = 3 To lr
    Thank you! I knew it was something simple.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: How to Select Column Range Starting at Row 2

    You're welcome. Thanks for the feedback.

+ 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. Paste range into next available row starting at column b
    By Burt_100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2015, 10:02 AM
  2. Select dyanmic range with variable starting/ending cells VBA
    By km2013 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-12-2013, 12:54 PM
  3. Replies: 4
    Last Post: 06-17-2013, 05:21 AM
  4. [SOLVED] Select range starting from B2 End(xlToRight) -1 column
    By bcn1988 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-19-2013, 01:33 PM
  5. Sum if - More than one column, mivng range, fix starting point
    By Skoum in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2012, 10:14 AM
  6. [SOLVED] Select Range with starting active cell and not reference
    By cooket4 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2012, 08:02 AM
  7. [SOLVED] Select Range with Starting Cell Unknown
    By amyxkatexx in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-23-2009, 01:26 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