Morning All,
I have been working on a program that will insert a picture into a cell but cant seem to get it working. Ideally it would insert the picture into the cell thats merged and size the picture to fit the cell. However because the name of the image I want could vary although the folder directory stays the same I need to use a cell value within the code and I think thats the bit the program gets stuck on the code is below and help would be appreciated.
Sub Macro1()
'
' Macro1 Macro
'
'
ActiveSheet.Pictures.Insert("C:\examplefile\test"& Range.("T3").Value & ".png").Select
End Sub
I have been working on a program that will insert a picture into a cell but cant seem to get it working. Ideally it would insert the picture into the cell thats merged and size the picture to fit the cell. However because the name of the image I want could vary although the folder directory stays the same I need to use a cell value within the code and I think thats the bit the program gets stuck on the code is below and help would be appreciated.
Sub Macro1()
'
' Macro1 Macro
'
'
ActiveSheet.Pictures.Insert("C:\examplefile\test"& Range.("T3").Value & ".png").Select
End Sub