Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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" On Oct 31, 8:29 pm, "jsd219" wrote: 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. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
But i need it to be one row below as well. :-)
God bless jsd219 Randy Harmelink wrote: 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" On Oct 31, 8:29 pm, "jsd219" wrote: 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. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
OK, how about:
Cells(cell.Row + 1, Range("G:G").Column).Value = "x" On Oct 31, 10:34 pm, "jsd219" wrote: But i need it to be one row below as well. :-) |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Awesome, Thank you very much
God bless jsd219 PS. I knew it had to be something simple. :-) Randy Harmelink wrote: OK, how about: Cells(cell.Row + 1, Range("G:G").Column).Value = "x" On Oct 31, 10:34 pm, "jsd219" wrote: But i need it to be one row below as well. :-) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
OFFSET Range | Excel Worksheet Functions | |||
Range offset | Excel Programming | |||
Copy range using offset range value | Excel Programming | |||
Problem with Range.Cells.Offset and Range.Cells( row + offset, column) | Excel Programming | |||
range offset | Excel Programming |