Range Offset

  • Thread starter Thread starter jsd219
  • Start date Start date
J

jsd219

Hi all, can anyone help me with this line:

cell.Offset(1, .Range "G").Value = "x"

I am trying to offset a row to a specific column

this is what the original line read:

cell.Offset(1, -5).Value = "x"

I was hoping to use a range letter instead of a number.

God bless
jsd219
 
I'm not exactly sure what you mean by "range letter"? If you mean
column G of the worksheet, you could do something like:

Cells(cell.Row, Range("G:G").Column).Value = "x"
 
Awesome, Thank you very much

God bless
jsd219

PS. I knew it had to be something simple. :-)
 

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