
Sub ShowImage()
Const ImageFullPath = "C:file duplicatimacro.jpg"
Const ImageName = "TempImageFile01"
If Dir(ImageFullPath) = "" Then Exit Sub
ActiveSheet.Pictures.Insert(ImageFullPath).Name = ImageName
Application.OnTime Now() + TimeValue("00:00:10"), "CloseImage"
End Sub
Sub CloseImage()
ActiveSheet.Pictures("TempImageFile01").Cut
End Sub |
Sub ShowImage()
MyImgFile = Cells(1, 15) 'Prende il valore di O1
ImageFullPath = MyImgFile
If Dir(ImageFullPath) = "" Then Exit Sub
ActiveSheet.Pictures.Insert(ImageFullPath).Name = ImageName
End Sub
|
