Shapes.AddPicture run-time error

M

Matt

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top