Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show the actual range selected ie a1:b4 1

Status
Not open for further replies.

daveonion

Programmer
Aug 21, 2002
359
GB
Hi,

I have a variable called my_rng this is derived from a user choosing a range within an Input Box. However i want to put the range selected in a msgbox but I am not sure what the property is ie i want the msgbox to say range selected is a1:B4, any assitance would be appreciated thanks
 
Hi dave,

Try:
MsgBox Selection.Address

Cheers

[MS MVP - Word]
 




Actually, with
Code:
MsgBox Selection.Address
you get the ABSOLUTE range. You may want that or not.

You can show the RELATIVE range
Code:
MsgBox Selection.Address(False, False)



Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top