S Steven May 20, 2008 #1 If a user choses a range in the Name Box is there a way to catch that range in a variable after selected? Thank you, Steven
If a user choses a range in the Name Box is there a way to catch that range in a variable after selected? Thank you, Steven
J JLGWhiz May 20, 2008 #2 What do you mean by choosing a range in the Name Box? You can set a named range to a variable just like any other range. Set myVar = Range("myNamedRange") See VBA help titles Referring to Named Ranges
What do you mean by choosing a range in the Name Box? You can set a named range to a variable just like any other range. Set myVar = Range("myNamedRange") See VBA help titles Referring to Named Ranges
S Steven May 20, 2008 #3 The Name Box to the left of the Formula Bar. If the user selects a range from the Name Box I want to catch the name in a variable.
The Name Box to the left of the Formula Bar. If the user selects a range from the Name Box I want to catch the name in a variable.
G Gary Keramidas May 20, 2008 #4 if they've actually clicked it to select the range: rngname = selection.name.name
B Bob Phillips May 20, 2008 #5 Try Selection.Name.Name -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy)
Try Selection.Name.Name -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy)