refer to a particular cell in r1c1 style
You can't mix R1C1 reference style with A1 reference style.
=min(h4,r[-1]c[4])
could be
=min(r4c8,r[-1]c[4])
Depending on what cell is getting the formula, you could use A1 reference style
in both spots.
John Smith wrote:
Dave Peterson wrote:
You should be able to refer to a range that way--no matter what the display is
set for.
activesheet.range("H5").value = "hi there!"
works ok for me.
You may want to post what didn't work?
John Smith wrote:
How do I refer to a particular cell when the spreadsheet is set to
r1c1 style? The spreadsheet does not accept H5 or things like
that. Thanks.
I have the following formula in cells and they all show "#name?".
=min(h4,r[-1]c[4])
The way I got around it (in the old macro xlm file) was to set a
name, say TOMATOPRICE, to h4. Then I could use the formula:
=min(TOMATOPRICE,r[-1]c[4])
Don't know how to do that in vba.
--
Dave Peterson
|