vba - How to check if a cell belongs to a dynamic name range -


i have few dynamic name-ranges , want check in vba if cell (ex active cell) belongs 1 of them.

for example, have created namerange

nametest1=offset(a1;0;0;count(a1:a12)) 

and want check if active cell within range.

i have found various ways that, not on dynamic name-ranges.

is there way it?

regards

thanasis

to test, nametest1 named range.

if not application.intersect(activecell, range("nametest1")) nothing     msgbox "activecell in range nametest1" else     msgbox "activecell not in range nametest1" end if 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -