Re: What is default property of name object
- From: "Peter T" <peter_t@discussions>
- Date: Tue, 26 Jun 2007 21:29:31 +0100
Hi Clara,
The default property of a Name is RefersTo, hence if the name refers to a
range returning the default property will return its address
Maybe you want this -
On error resume next
s = ""
s = Range("A1:a3").Name.Name
on error goto 0
If len(s) then
msgbox s & vbcr & Range("A1:a3").Name
else
msgbox "the range is not defined"
End if
Regards,
Peter T
"clara" <clara@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:68DAC615-D4AF-4FEB-8CEF-AEA4D0287F91@xxxxxxxxxxxxxxxx
Hi all,
I can use
Range("A1:a3").Name = "data"
to define a name object.
but Range("A1:a3").Name will display the address of the name object
Could you explain why?
Clara
--
thank you so much for your help
.
- Follow-Ups:
- Re: What is default property of name object
- From: clara
- Re: What is default property of name object
- Prev by Date: Re: Date Range (Starting & Ending Date) - syed shahzad
- Next by Date: RE: Delete work*** in collection
- Previous by thread: How to create a function that fills the current date in an adjoining cell
- Next by thread: Re: What is default property of name object
- Index(es):