Hi All,
I recorded this macro, I was hoping it would copy a part number typed into "E4" navigate to the folder with all the part images and then paste the number into the search bar and then paste the image onto my sheet this works fine,
But as you can see the part number is recorded into the macro meaning I will only ever see this part number image, and changing the part number in "E4" will not make a difference,
Is it possible to create a macro that will perform what I'm trying to achieve, assuming you can see what I'm trying to do
Thanks all,
I recorded this macro, I was hoping it would copy a part number typed into "E4" navigate to the folder with all the part images and then paste the number into the search bar and then paste the image onto my sheet this works fine,
But as you can see the part number is recorded into the macro meaning I will only ever see this part number image, and changing the part number in "E4" will not make a difference,
Is it possible to create a macro that will perform what I'm trying to achieve, assuming you can see what I'm trying to do
Thanks all,
VBA Code:
Sub Macro2()
'
' Macro2 Macro
'
'
Range("E4").Select
Selection.Copy
ActiveSheet.Pictures.Insert( _
"C:\Users\vmapp1\OneDrive\OneDrive - JAGUAR LAND ROVER\Pictures\parts\M8E2-279A70-AA.png" _
).Select
Selection.ShapeRange.ScaleWidth 0.2671568627, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleHeight 0.2671568593, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.IncrementLeft -169.5
Selection.ShapeRange.IncrementTop 52.5
Range("E6").Select
End Sub