
Originally Posted by
BrotherNeptune
You mention that you changed the coding for the Named Ranges... How were you able to identify the Agency name as a Range?
The Agency name is a Range object, from a list of Names. To extract the Ranges that was referred to by the Named range, you use the Names.RefersToRange property.
For example, if Chicago_City_Of is referring to cells A1:A10 then
Names("Chicago_City_Of") is a Name object
Names("Chicago_City_Of").RefersToRange is the Range object such that you can do...
As for the empty rows, perhaps you can change the macro to first find these rows and delete them.
As for the inclusion or exlusion of certain cities from calculation, you'll probably need to create a new table listing all the names with a Yes/No next to it. Then amend the macro code to check these Yes/Nos on whether to process them or not. If No, proceed to next name.
Bookmarks