![]() |
#1
|
|||
|
|||
![]()
Hello All,
Probably quite simple but virtually all of the macros I have searched for show how to find a value or text string and delete the row the value is within. I need to find the single instance of a cell that contains the words REVERSE DIRECTION (in uppercase and this is all the cell contains) and if the cell/row below the text is blank, delete the blank row, but if the cell below has text or a value do not delete the row (exit the sub). For example: If the macro was to be re-run several times, I do not want the macro finding the same string and deleting existing data/rows. In my case I have an extract output from another program and this is opened with Excel and the output has the following: • the first 12 rows are headings and these headings are separated by blank rows • the string REVERSE DIRECTION could be anywhere in column B Regards, David T |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
AWD | Word | 3 | 10-16-2018 01:10 PM |
![]() |
Dimsok | Word VBA | 18 | 11-14-2014 12:30 PM |
![]() |
omahadivision | Excel Programming | 12 | 11-23-2013 12:10 PM |
Word delete page if string is not contained | wolfking333 | Word VBA | 0 | 06-23-2013 10:02 AM |
![]() |
dozd | Excel | 1 | 02-22-2013 03:24 AM |