snideysimon
New Member
- Joined
- Sep 6, 2006
- Messages
- 10
Hi
I am wanting to write a macro which will delete all rows which do not meet a specified condition - the long hand version would be as follows:
If Range("J3") <> "Jan" Then Rows("3:3").Delete
If Range("J4") <> "Jan" Then Rows("4:4").Delete
Obviously I don't want to repeat this out 65000 times, is there a quicker way to do this
I am wanting to write a macro which will delete all rows which do not meet a specified condition - the long hand version would be as follows:
If Range("J3") <> "Jan" Then Rows("3:3").Delete
If Range("J4") <> "Jan" Then Rows("4:4").Delete
Obviously I don't want to repeat this out 65000 times, is there a quicker way to do this