L leungkong Aug 19, 2008 #1 I want to search the upper and lower row of a range. for example, Range("B3:E10") Upper = "B" Lower = "E" Thanks.
I want to search the upper and lower row of a range. for example, Range("B3:E10") Upper = "B" Lower = "E" Thanks.
P paulgu Joined Apr 29, 2008 Messages 66 Reaction score 0 Aug 21, 2008 #2 Well B & E are the first and last *columns* of the range. In code you could use: Upper = Range("MyRange").Column Lower = Upper + Range("MyRange").Columns.Count - 1 and something similar would also work with rows. HTH
Well B & E are the first and last *columns* of the range. In code you could use: Upper = Range("MyRange").Column Lower = Upper + Range("MyRange").Columns.Count - 1 and something similar would also work with rows. HTH