View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Matt[_12_] Matt[_12_] is offline
external usenet poster
 
Posts: 2
Default 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