Answers for "vba code to select image in sheet"

VBA
0

vba code to select image in sheet

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
Posted by: Guest on January-08-2021

Code answers related to "vba code to select image in sheet"

Code answers related to "VBA"

Browse Popular Code Answers by Language