Hi,
The code below was working fine.
It is expected to embed images starting from I3 but unfortunately, the result is floating images.
The answer should be very simple
The code below was working fine.
Code:
Sub ResimYerlestirembed()
Dim Pshp As Shape
Dim XRg As Range
Dim xCol As Long
On Error Resume Next
Application.ScreenUpdating = False
Set Rng = ActiveSheet.Range("H3:H5")
For Each cell In Rng
urladreshucre = cell
ActiveSheet.Shapes.AddPicture(urladreshucre, False, True, 100, 100, -1, -1).Select
Set Pshp = Selection.ShapeRange.Item(1)
If Pshp Is Nothing Then GoTo lab
xCol = cell.Column + 1
Set XRg = Cells(cell.Row, xCol)
With Pshp
.LockAspectRatio = True
.Width = 100
.Height = 100
.Top = XRg.Top
.Left = XRg.Left
End With
lab:
Set Pshp = Nothing
Range("A2").Select
Next
Application.ScreenUpdating = True
End Sub
It is expected to embed images starting from I3 but unfortunately, the result is floating images.
The answer should be very simple