Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Rainhard Fischer   on Mar 07 In MS Office Category.

  
Question Answered By: Adalgisa Miller   on Mar 07

This is how I would probably do it:

Sub DeleteNonContinousRows()

'Place the cursor at the correct cell in the sheet
Range("A1").Select
Application.Goto Reference:="R2C1"

For Counter = 1 To 400 '2000/5
ActiveCell.Range("A1:A4").Select
Selection.EntireRow.Delete
ActiveCell.Offset(1, 0).Range("A1").Select
Next Counter

End Sub

Share: 

 

This Question has 11 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Deleting Non-consecutive rows in VBA Or get search suggestion and latest updates.


Tagged: