LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Offset Range

Haven't we been here before. We suggested
if worksheetfunction.countif(activecell.offset(0,1).r esize(1,4),".") = 4

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"hotherps " wrote in message
...
I need a little help with the following code:

If .Cells(x, y).Value = "." _
And Cells(x, y).Offset(0, 4).Value = "." _

And counter < 8 _
And need 0 Then
Cells(x, y).Value = "ENG"

= problem


I'm trying to check to see if the next four cells to the right have the
value "." in them.
I can't seem to get it right, does Offset work differently when you
want to check a range as opposed to a cell?

Thanks


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





 
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
OFFSET and range addresses chemist Excel Discussion (Misc queries) 1 October 23rd 06 11:47 PM
Using Offset to name a range Jennifer Excel Worksheet Functions 3 June 15th 05 10:07 AM
range offset Douvid Excel Programming 5 August 20th 03 04:38 PM
dynamic range without using OFFSET() Andrew[_16_] Excel Programming 1 July 25th 03 01:57 PM


All times are GMT +1. The time now is 11:53 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"