Hi all
I have a vba routine which i use to import some external data and drive some reports.
As part of the process, i need to add some validation to the data that is being imported to check that each of the following appear n times (e.g. 7):
They would appear in column B, and my data range is A3:S107 (the 107 bit should be dynamic, the Column S would be nice to be dynamic but not of great importance)
Basically, if any of them aren't 7, i want to stop the routine. Perhaps giving a msg box with the list and their counts to highlight which area is missing/not complete.
If they are all 7, i'd like to delete all rows where column B contains something other than the list above.
Any help greatly appreciated.
I have a vba routine which i use to import some external data and drive some reports.
As part of the process, i need to add some validation to the data that is being imported to check that each of the following appear n times (e.g. 7):
East Scotland
West Scotland
North Scotland
South Scotland
NW England
NE England
Wales
Midlands
East Anglia
SE England
South Cen England
SW England
Greater London
They would appear in column B, and my data range is A3:S107 (the 107 bit should be dynamic, the Column S would be nice to be dynamic but not of great importance)
Basically, if any of them aren't 7, i want to stop the routine. Perhaps giving a msg box with the list and their counts to highlight which area is missing/not complete.
If they are all 7, i'd like to delete all rows where column B contains something other than the list above.
Any help greatly appreciated.