rhino4eva
Active Member
- Joined
- Apr 1, 2009
- Messages
- 262
- Office Version
- 2010
- Platform
- Windows
Sheets("Sheet1").UsedRange
Dim Rng1 As Range
For Each Rng1 In Range("Z:Z").SpecialCells(xlBlanks).Areas
Intersect(Rng1.EntireRow, Range("A:BT")).Delete shift:=xlUp
Next Rng1
ok so I have used this code many times but need to modify it a little
.SpecialCells(xlBlanks). gets rid of blanks
I would like to repeat the exercise but I would like to delete the entirerow if it finds the word "Vitamin D" and "PSA"
Dim Rng1 As Range
For Each Rng1 In Range("Z:Z").SpecialCells(xlBlanks).Areas
Intersect(Rng1.EntireRow, Range("A:BT")).Delete shift:=xlUp
Next Rng1
ok so I have used this code many times but need to modify it a little
.SpecialCells(xlBlanks). gets rid of blanks
I would like to repeat the exercise but I would like to delete the entirerow if it finds the word "Vitamin D" and "PSA"