do something to the cell two columns over from curent cell

  • Thread starter Thread starter sumGirl
  • Start date Start date
S

sumGirl

Hey all. I have a scrap of code that executes when a user doubleclicks
a cell (based on 'Target.Address' thanks to another poster in this
forum!). What I need to do is take that cell address and do something
two cells over based on it. I cant figure out how to add two cells (or
whatever) to the cell address...does this make any sense!?!?
 
You can use Offset

Offset (rows,columns)

Target.Offset(5, 1).Value = "H1"
 

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