Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If in a spreadsheet, I have a defined name, (=Numbers!$a$1), can I
use it as a range name in a sub? If so, how do I select and activate it? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes, you can use your name in the code.
One way is like this: ThisWorkbook.Sheets(1).Range("ToddsName") = 999 BTW, you do not need to select and activate the range to use the value it contains. Just refer to it in the code. Cheers, FK wrote in message ... If in a spreadsheet, I have a defined name, (=Numbers!$a$1), can I use it as a range name in a sub? If so, how do I select and activate it? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
or from anywhere in the workbook
[toddsname]=999 -- Don Guillett SalesAid Software "Francine Kubaka" wrote in message news:I0nHb.69921$ss5.12773@clgrps13... Yes, you can use your name in the code. One way is like this: ThisWorkbook.Sheets(1).Range("ToddsName") = 999 BTW, you do not need to select and activate the range to use the value it contains. Just refer to it in the code. Cheers, FK wrote in message ... If in a spreadsheet, I have a defined name, (=Numbers!$a$1), can I use it as a range name in a sub? If so, how do I select and activate it? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As posed, the range doesn't have a defined name.
=Numbers! is the the sheet to which you refer and the cell address is cell A1 In your code, you can reference that cell as Worksheets("Numbers").Range("A1") If you had named the cell eg myCell then Worksheets("Numbers").Range("myCell") is how you can explicit address it Kevin Beckham -----Original Message----- If in a spreadsheet, I have a defined name, (=Numbers! $a$1), can I use it as a range name in a sub? If so, how do I select and activate it? . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run-time error '50290': Application-defined or object-defined erro | Excel Discussion (Misc queries) | |||
"User-defined type not defined" message in Excel | Excel Discussion (Misc queries) | |||
A Question on User Defined Functions. | Excel Programming | |||
Application-defined or object-defined error | Excel Programming | |||
Application-defined or object-defined error | Excel Programming |