wilmargrp
Technical User
- Apr 27, 2009
- 12
working in Excel 2007 and looking for a script to cycle through all of the Shapes on an ActiveSheet to see if any of them have a Hyperlink attached.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub WhatShapez()
Dim hl As Hyperlink
For Each hl In ActiveSheet.Hyperlinks
With hl
If Not .Shape Is Nothing Then
MsgBox .Shape.Name
End If
End With
Next
End Sub
Sub WhatShapez()
Dim hl As Hyperlink
For Each hl In ActiveSheet.Hyperlinks
With hl
On Error Resume Next
If Not .Shape Is Nothing Then
MsgBox .Shape.Name
End If
On Error GoTo 0
End With
Next
End Sub
Sub RemoveShapes(ws As Worksheet)
ws.Shapes.Delete
End Sub
RemoveShapes YourSheetObject