Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Value at Intersecting cells

I'm not sure what you're looking for -- there is no intersection with cells
B8 and D8. You might be interested in the Application.Intersect method.
E.g.,

Dim R1 As Range
Dim R2 As Range
Dim ISect As Range
Set R1 = Range("A1")
Set R2 = Range("A1:C3")
Set ISect = Application.Intersect(R1, R2)
If ISect Is Nothing Then
Debug.Print "No overlapping cells"
Else
Debug.Print "Cell " & ISect.Address & " Value: " & ISect.Value
End If


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com



"ibeetb" wrote in message
...
Is there a way to get the value of a cell which lies at the intersection

of
say......B8 and D8? (I'd prefer to do in code - but will accept doing it

in
a wrksht function)

Thanks




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
Using Intersecting Names for lookup gf Excel Discussion (Misc queries) 2 November 30th 09 01:55 AM
Testing if a point is falling within the bounds of intersecting cu Mukesh Excel Worksheet Functions 6 September 2nd 07 08:24 PM
RETURN intersecting value with known horizotal & vertical?? || cypher || Excel Worksheet Functions 4 February 2nd 05 10:27 PM
Intersecting addresses from two sheets Dave Peterson[_3_] Excel Programming 0 August 22nd 03 04:18 AM
Intersecting addresses from two sheets Barney Fife Excel Programming 1 August 22nd 03 03:53 AM


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