vba code to select image in sheet

The solution for “vba code to select image in sheet” can be found here. The following code will assist you in solving the problem.

Sub SelectPictureAtActiveCell()
Dim Pic As Shape
For Each Pic In ActiveSheet.Shapes
If Pic.TopLeftCell.Address = ActiveCell.Address Then
If Pic.Type = msoPicture Then
Pic.Select
Exit For
End If
End If
Next
End Sub

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts