ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   range("myrng"), names("myrng").RefersToRange?? (https://www.excelbanter.com/excel-programming/281887-range-myrng-names-myrng-referstorange.html)

active_x[_8_]

range("myrng"), names("myrng").RefersToRange??
 
Any difference between 'range("myrng")' and 'names
("myrng").RefersToRange'??

(in general, when "myrng" = UNCOMBINED cells, when "myrng" = COMBINED cells...)

Bob Phillips[_5_]

range("myrng"), names("myrng").RefersToRange??
 
Range is an object, so you get back an the range object that 'myRng' refers
to, whereas Names...Refersto returns a string that shows the referred to
value, including the leading -.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"active_x" wrote in message
om...
Any difference between 'range("myrng")' and 'names
("myrng").RefersToRange'??

(in general, when "myrng" = UNCOMBINED cells, when "myrng" = COMBINED

cells...)



Tom Ogilvy

range("myrng"), names("myrng").RefersToRange??
 
Believe Bob was talking about the Refersto property of the name.

Both

Range("myRange")
and
Names("MyRange").ReferesToRange

should return the same range

--
Regards,
Tom Ogilvy

active_x wrote in message
om...
Any difference between 'range("myrng")' and 'names
("myrng").RefersToRange'??

(in general, when "myrng" = UNCOMBINED cells, when "myrng" = COMBINED

cells...)




All times are GMT +1. The time now is 07:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com