View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
jeichhold via OfficeKB.com jeichhold via OfficeKB.com is offline
external usenet poster
 
Posts: 2
Default loop through rectangles on worksheet

Ok, great. I think this will do the trick. thanks

Bob Phillips wrote:
One way

Dim oRect As Object

For Each oRect In ActiveSheet.Rectangles
On Error Resume Next
MsgBox oRect.Text
On Error GoTo 0
Next oRect

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

Hello,

[quoted text clipped - 24 lines]
How can I change this code to loop sequentially through all rectangles on the
worksheet, no matter what the starting and ending rectangle numbers are?


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200606/1