ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   working with a named range (https://www.excelbanter.com/excel-programming/330671-working-named-range.html)

Gixxer_J_97[_2_]

working with a named range
 
hi all,

i'm looking to figure out how to use a named range and get its value into a
new cell, but not the reference, the actual value

ie

dim loc as range

loc.formular1c1="=NamedRange1"
will put the reference to where NamedRange1 points - and will change when
NamedRange1 changes. however i need the copy to be 'static'

any suggestions?

tia

J

Tom Ogilvy

working with a named range
 
loc.formular1c1="=NamedRange1"
loc.formula = loc.value

or

loc.Value = Range("NameRange1").Value

--
Regards,
Tom Ogilvy

"Gixxer_J_97" wrote in message
...
hi all,

i'm looking to figure out how to use a named range and get its value into

a
new cell, but not the reference, the actual value

ie

dim loc as range

loc.formular1c1="=NamedRange1"
will put the reference to where NamedRange1 points - and will change when
NamedRange1 changes. however i need the copy to be 'static'

any suggestions?

tia

J




Don Guillett[_4_]

working with a named range
 
how about
range("a2").value=[namedrange1]

--
Don Guillett
SalesAid Software

"Gixxer_J_97" wrote in message
...
hi all,

i'm looking to figure out how to use a named range and get its value into

a
new cell, but not the reference, the actual value

ie

dim loc as range

loc.formular1c1="=NamedRange1"
will put the reference to where NamedRange1 points - and will change when
NamedRange1 changes. however i need the copy to be 'static'

any suggestions?

tia

J





All times are GMT +1. The time now is 11:10 AM.

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