Hi folks
Assistance required please, and thanks to all for reading...
I have a spreadsheet containing a number of text entries in column C. I want to delete a number of rows starting at the row containing text 'start' and ending with the row containing the text 'finish' (for example).
I can create variables which find the appropriate text, and set amount - but cannot work out how to set the last bit - delete the range...
Set c = .Find("C:\DELL", LookIn:=xlValues)
firstRw = c.Row
Set d = .Find("C:\DELLUTIL", LookIn:=xlValues)
secondRw = d.Row
Rows("firstRw:secondRw").Select
Selection.Delete Shift:=xlUp
I would be grateful for any assistance...
Thanks
Penny
Assistance required please, and thanks to all for reading...
I have a spreadsheet containing a number of text entries in column C. I want to delete a number of rows starting at the row containing text 'start' and ending with the row containing the text 'finish' (for example).
I can create variables which find the appropriate text, and set amount - but cannot work out how to set the last bit - delete the range...
Set c = .Find("C:\DELL", LookIn:=xlValues)
firstRw = c.Row
Set d = .Find("C:\DELLUTIL", LookIn:=xlValues)
secondRw = d.Row
Rows("firstRw:secondRw").Select
Selection.Delete Shift:=xlUp
I would be grateful for any assistance...
Thanks
Penny