I was just wondering if it is possible to use VBA that could load an image, stored locally, into a shape on the worksheet?
Purpose for this is that I have a graph and I would like to position an unfilled shape behind the plot area, which has zero transparency, and that shape then would have a different image loaded in it depending on the value entered in a specific cell.
Already have some code that would automatically run the macro. Just need the picture into a shape code.
Am using Excel 2016
Thanks in advance
George
Purpose for this is that I have a graph and I would like to position an unfilled shape behind the plot area, which has zero transparency, and that shape then would have a different image loaded in it depending on the value entered in a specific cell.
Already have some code that would automatically run the macro. Just need the picture into a shape code.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$3" Then
Application.EnableEvents = False
' code for picture into shape should go here
Application.EnableEvents = True
End If
End Sub
Am using Excel 2016
Thanks in advance
George