Find all Pears and then name the range as Pears
Dear all,
I have a spreadsheet that looks like this:
Column A
Apple
Apple
Apple
Pear
Pear
Pear
Pear
Orange
Orange
The number of rows with Pears change from time to time and I want a macro to
find all the cell with Pear and then name the range as Pears.
Does anyone know how to do this? Any help much appreciated.
--
Regards,
Martin
|