Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Range Offset

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default Range Offset

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Range Offset

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default Range Offset

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Range Offset

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OFFSET Range Daniel Excel Worksheet Functions 1 October 18th 07 03:12 PM
Range offset jsd219 Excel Programming 18 October 30th 06 01:39 AM
Copy range using offset range value caroline Excel Programming 2 February 16th 06 02:51 PM
Problem with Range.Cells.Offset and Range.Cells( row + offset, column) [email protected] Excel Programming 2 August 22nd 05 05:25 AM
range offset Douvid Excel Programming 5 August 20th 03 04:38 PM


All times are GMT +1. The time now is 04:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"