Simple Thing

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

I want to set a variable equal to a relative cell. How do
I do that. My small brain can't seem to think of anything
else except for the below. Thanks, Brian


Set rng1 = Worksheets("sheet 1").ActiveCell.Offset(11,
0).Range("A1")
(This does not make it relative... hmm any ideas..
 
What exactly do you mean by a relative cell?

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Hi Brian,
If you are on the cell you want to capture, Z= activecell.value
If the cell is relative, Z=activecell.offset(1,1).value
 

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

Back
Top