I am using the below macro to insert a signature (jpeg file) into a set cell area. When setting the macro the signature is sized to the cell and saved (fits perfectly). When reopening the spreadsheet and selecting the macro button the signature is large and does not appear in the cell that was set up. Can anyone give me some ideas to rewrite the macro so it automatically sizes according to the cell sixe and places the signature in the cell that the cursor is in?
Sub Macro7()
'
' Macro7 Macro
'
'
ActiveSheet.Pictures.Insert("G:\SIGNATURE\signature.jpg").Select
Selection.ShapeRange.IncrementLeft 18
Selection.ShapeRange.IncrementTop 13.5
Selection.ShapeRange.ScaleWidth 5.0376254181, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleHeight 5.0376248072, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleHeight 0.8953245728, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleWidth 1.2946062448, msoFalse, msoScaleFromTopLeft
Range("C17").Select
End Sub
Sub Macro7()
'
' Macro7 Macro
'
'
ActiveSheet.Pictures.Insert("G:\SIGNATURE\signature.jpg").Select
Selection.ShapeRange.IncrementLeft 18
Selection.ShapeRange.IncrementTop 13.5
Selection.ShapeRange.ScaleWidth 5.0376254181, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleHeight 5.0376248072, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleHeight 0.8953245728, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleWidth 1.2946062448, msoFalse, msoScaleFromTopLeft
Range("C17").Select
End Sub