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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

range properties 1

Status
Not open for further replies.

Luis939

MIS
Feb 28, 2003
453
US
is there a way i can find some properties of a range i define, such as
set myrange = workbooks("xxx").worksheets("yyy")...

so that later on in my program if i just have myrange, can i find out what workbook and what worksheet it is in?
thanks!
 
Hi Luis939,

myrange.Address(External:=True) gives you a complete [Workbook]Worksheet!Cells type address.

myrange.Worksheet.Name give you the sheet name.

and

myrange.Worksheet.Parent.Name should also give you the workbook name.

Enjoy,
Tony

------------------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading FAQ222-2244 before you ask a question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top