Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
GC GC is offline
external usenet poster
 
Posts: 18
Default Using range name in formulas

How do you use a range name within a formula?
example
I have a range (1 cell) called STATUS.
I would like to use my named range in the following formula.

Worksheets("Data").Cells(23, 1).Value = "Running "

Thanks a bunch,
Gerry



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 181
Default Using range name in formulas

Hi Gerry

Rather than using 'cells' use 'range'

Worksheets("Data").Range("STATUS").Value = "Running "

HTH
Trevor Williams

"GC" wrote:

How do you use a range name within a formula?
example
I have a range (1 cell) called STATUS.
I would like to use my named range in the following formula.

Worksheets("Data").Cells(23, 1).Value = "Running "

Thanks a bunch,
Gerry




  #3   Report Post  
Posted to microsoft.public.excel.programming
GC GC is offline
external usenet poster
 
Posts: 18
Default Using range name in formulas

Hey Trevor, Thank you very much. This is what I was looking for.
I have another question. I wrote a small VP application in my Excel file.
How do I write protect my work or better still, how could I hide or not give
access to the VB part of the Excel file?

Gerry

"Trevor Williams" wrote in
message ...
Hi Gerry

Rather than using 'cells' use 'range'

Worksheets("Data").Range("STATUS").Value = "Running "

HTH
Trevor Williams

"GC" wrote:

How do you use a range name within a formula?
example
I have a range (1 cell) called STATUS.
I would like to use my named range in the following formula.

Worksheets("Data").Cells(23, 1).Value = "Running "

Thanks a bunch,
Gerry






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Using range name in formulas

in the development environment choose Tools / VBA Project Properties then
the Protection tab.
check the Lock Project box and add a password.
Warning : there are many programs out there on the Web that will crack Excel
VBA.


"GC" wrote in message
...
Hey Trevor, Thank you very much. This is what I was looking for.
I have another question. I wrote a small VP application in my Excel file.
How do I write protect my work or better still, how could I hide or not
give access to the VB part of the Excel file?

Gerry

"Trevor Williams" wrote in
message ...
Hi Gerry

Rather than using 'cells' use 'range'

Worksheets("Data").Range("STATUS").Value = "Running "

HTH
Trevor Williams

"GC" wrote:

How do you use a range name within a formula?
example
I have a range (1 cell) called STATUS.
I would like to use my named range in the following formula.

Worksheets("Data").Cells(23, 1).Value = "Running "

Thanks a bunch,
Gerry






  #5   Report Post  
Posted to microsoft.public.excel.programming
GC GC is offline
external usenet poster
 
Posts: 18
Default Using range name in formulas

Thank you Patrick.
Gerry
"Patrick Molloy" wrote in message
...
in the development environment choose Tools / VBA Project Properties then
the Protection tab.
check the Lock Project box and add a password.
Warning : there are many programs out there on the Web that will crack
Excel VBA.


"GC" wrote in message
...
Hey Trevor, Thank you very much. This is what I was looking for.
I have another question. I wrote a small VP application in my Excel file.
How do I write protect my work or better still, how could I hide or not
give access to the VB part of the Excel file?

Gerry

"Trevor Williams" wrote in
message ...
Hi Gerry

Rather than using 'cells' use 'range'

Worksheets("Data").Range("STATUS").Value = "Running "

HTH
Trevor Williams

"GC" wrote:

How do you use a range name within a formula?
example
I have a range (1 cell) called STATUS.
I would like to use my named range in the following formula.

Worksheets("Data").Cells(23, 1).Value = "Running "

Thanks a bunch,
Gerry








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I specify these date-range formulas? KMC Excel Discussion (Misc queries) 1 July 23rd 08 10:35 PM
how to sum up a range of formulas? Melissa Excel Discussion (Misc queries) 5 August 14th 07 06:26 PM
how to copy formulas from one range to another range in other work Miri Excel Programming 1 June 6th 07 03:52 PM
excel range formulas kennedy.matt Excel Worksheet Functions 1 May 29th 07 08:15 PM
How do you set up range names, name formulas DonF Excel Worksheet Functions 0 October 4th 06 05:11 PM


All times are GMT +1. The time now is 02:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"