I have a module that exports data from access to excel, adds a new sheet (for suuary data) and formats all sheets in excel.
I have managed to add the company logo onto the summary sheet, in cell A1, but the picture itself is too small to see (without manually resizing it).
I have tried many variations to get this picture resized but to no avail (the code falls down). The latest error message for the below is: "Object doesn't support this propoerty or method"
Any ideas on how I can get around this?
Your help is appreciated.
I have managed to add the company logo onto the summary sheet, in cell A1, but the picture itself is too small to see (without manually resizing it).
I have tried many variations to get this picture resized but to no avail (the code falls down). The latest error message for the below is: "Object doesn't support this propoerty or method"
Any ideas on how I can get around this?
Your help is appreciated.
Code:
Stop
' ActiveSheet.Shapes("Picture 1").Select
With xlSheet.Range("A1:A1") 'Works ok
xlSheet.Pictures.Insert(stPicPath).Select 'Works ok - picture is inserted into correct location
End With 'Works ok
With xlSheet.Shapes("Picture 1") ' Works ok - picture is selected
.ShapeRange.ScaleWidth 8.86, msoFalse, msoScaleFromTopLeft ' Fails
.ShapeRange.ScaleHeight 8.86, msoFalse, msoScaleFromTopLeft 'I assume fails as same as above
End With