Using range name in formulas

G

GC

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
 
T

Trevor Williams

Hi Gerry

Rather than using 'cells' use 'range'

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

HTH
Trevor Williams
 
G

GC

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
 
P

Patrick Molloy

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.
 
G

GC

Thank you Patrick.
Gerry
Patrick Molloy said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top