Hi All,
Is there a way to determine what named range my active cell is in, by matching it to part of the ranges name? Example: I have a varying amount of ranges called "Item_Range_(Variable)". In my worksheet code i want to use something that can match whichever range the "target" cell is intersecting with any of the ranges called "Item_Range_" (and a certian column number of that range) and not take in account the variable part of the range name. Is this possible?
This code is working code for a hard code name of "Item_Range_", it doesn't work for this case because it cant find that range name.
Is there a way to determine what named range my active cell is in, by matching it to part of the ranges name? Example: I have a varying amount of ranges called "Item_Range_(Variable)". In my worksheet code i want to use something that can match whichever range the "target" cell is intersecting with any of the ranges called "Item_Range_" (and a certian column number of that range) and not take in account the variable part of the range name. Is this possible?
This code is working code for a hard code name of "Item_Range_", it doesn't work for this case because it cant find that range name.
Rich (BB code):
If Not Intersect(Target, Range("Item_Range_" ).Columns(7)) Is Nothing Then