+ Reply to Thread
Results 1 to 5 of 5

Select Successive Rows

Hybrid View

Floydlevedale Select Successive Rows 10-08-2012, 01:01 PM
patel45 Re: Select Successive Rows 10-08-2012, 01:39 PM
Floydlevedale Re: Select Successive Rows 10-08-2012, 02:30 PM
patel45 Re: Select Successive Rows 10-09-2012, 03:26 AM
Floydlevedale Re: Select Successive Rows 10-09-2012, 03:48 AM
  1. #1
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Cape Town South Africa
    MS-Off Ver
    Excel 2007
    Posts
    133

    Select Successive Rows

    Hi All

    Would like a a Macro that selects every tenth row in a worksheet starting from the 5th row. So, the selected rows would be 5,15,25,35 etc

    Thanking you in advance

    Floyd

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Select Successive Rows

    Sub Macro1()
    For j = 5 To 45 Step 10 ' 
      st = st & "A" & j & ","
    Next
    st = st & "A" & j
    Range(st).Select
    End Sub
    If solved remember to mark Thread as solved

  3. #3
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Cape Town South Africa
    MS-Off Ver
    Excel 2007
    Posts
    133

    Re: Select Successive Rows

    Hi Patel

    Thanks for the response, but the Macro only selects cells in Column A, need it to select the entire row.

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Select Successive Rows

    Sub Macro1()
    For j = 5 To 45 Step 10 '
      st = st & "A" & j & ","
    Next
    st = st & "A" & j
    Range(st).EntireRow.Select
    End Sub

  5. #5
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Cape Town South Africa
    MS-Off Ver
    Excel 2007
    Posts
    133

    Re: Select Successive Rows

    Thanks Patel, working well.

+ 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