Hi everyone,
I am really stuck and helpless facing my macro problem.
I use this code (below one) but it doesn´t read my pictures.
I inserted my pictures in excel and I display, via mathematical formulas, their name in the cell I want to see them appeared.
Does anyone know what's wrong ?
I thank you for your precious info
Sub Single_Country_Profile()
'
' Single_Country_Profile Macro
'
Worksheets("Single country profile Trd").Select
Dim oPic As Picture
Worksheets("Single country profile Trd").Pictures.Visible = False
With Range("I2")
For Each oPic In Worksheets("Single country profile Trd").Pictures
If oPic.Name = .Text Then
oPic.Visible = True
oPic.Top = .Top
oPic.Left = .Left
Exit For
End If
Next oPic
End With
End Sub
I am really stuck and helpless facing my macro problem.
I use this code (below one) but it doesn´t read my pictures.
I inserted my pictures in excel and I display, via mathematical formulas, their name in the cell I want to see them appeared.
Does anyone know what's wrong ?
I thank you for your precious info
Sub Single_Country_Profile()
'
' Single_Country_Profile Macro
'
Worksheets("Single country profile Trd").Select
Dim oPic As Picture
Worksheets("Single country profile Trd").Pictures.Visible = False
With Range("I2")
For Each oPic In Worksheets("Single country profile Trd").Pictures
If oPic.Name = .Text Then
oPic.Visible = True
oPic.Top = .Top
oPic.Left = .Left
Exit For
End If
Next oPic
End With
End Sub