ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Shapes.AddPicture run-time error (https://www.excelbanter.com/excel-programming/275061-shapes-addpicture-run-time-error.html)

Matt[_12_]

Shapes.AddPicture run-time error
 
I'm trying to add a picture to a worksheet but I get "The specified
value is out of range". Here is the code (VB 6.0):

Set moSheet = moBook.Sheets("Sheet1")
moSheet.Shapes.AddPicture "C:\TEMP\splash.bmp", False, False, 0, 0,
10, 10

The code resides in a .bas module. The variables moSheet and moBook
refer to global Worksheet and Workbook objects. Any help is greatly
appreciated!

Matt


All times are GMT +1. The time now is 03:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com