I get error 1004 on this
Unable to get the insert property of the Pictures class
i searched all forums to get a solution butno luck
funny thing is it worked well and sudenly it doesn't work anymore
Unable to get the insert property of the Pictures class
i searched all forums to get a solution butno luck
funny thing is it worked well and sudenly it doesn't work anymore
Code:
Sub AddPicture()
Dim img As Object
Dim Path As String
Path = ("C:\Users\Pictures\piture.png")
If Path <> "False" Then
Set img = ActiveSheet.Pictures.Insert(Path)
With img
img.Width = 10
img.Height = 10
img.Top = .Top - 2
img.Left = .Left - 2
img.Placement = xlMoveAndSize
End With
Else
Exit Sub
End If
End Sub