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

Is there a way to put a "between condition into and offset statement?

If .Cells(x, y).Offset(0, -1) = "" Then
If .Cells(x, y).Value = "." _
And .Cells(x, y).Offset(0, 41) = "." _
And need 0 Then
.Cells(x, y).Offset(0, 0).Resize(1, 42).Value = "MMS"

What If I want to apply the same code to the range of Offset 0,4
through 0,96

Thank

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Offset Between?

for k = 0 to 1
y = y + k*42
existing code
Next


--
Regards,
Tom Ogilvy

"hotherps " wrote in message
...
Is there a way to put a "between condition into and offset statement?

If .Cells(x, y).Offset(0, -1) = "" Then
If .Cells(x, y).Value = "." _
And .Cells(x, y).Offset(0, 41) = "." _
And need 0 Then
Cells(x, y).Offset(0, 0).Resize(1, 42).Value = "MMS"

What If I want to apply the same code to the range of Offset 0,41
through 0,96

Thanks


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Offset Between?

Thanks Tom I'll try tha

--
Message posted from http://www.ExcelForum.com

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 2nd ref. houAstros1989 Excel Worksheet Functions 3 December 1st 09 07:47 AM
Offset MichelleT Excel Worksheet Functions 2 October 8th 09 12:47 PM
Compare Cell Values, Offset(-1,0), Offset(-1,-1), and xlFillDefaul RyGuy Excel Worksheet Functions 2 September 28th 07 10:54 PM
Offset Esrei Excel Discussion (Misc queries) 1 February 16th 07 11:42 AM
Offset. Joe Edwards Excel Worksheet Functions 2 November 2nd 06 06:57 AM


All times are GMT +1. The time now is 03:24 PM.

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

About Us

"It's about Microsoft Excel"