View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jim[_7_] Jim[_7_] is offline
external usenet poster
 
Posts: 19
Default LoadPicture compile error

I can't figure out what is wrong with this line of code:

Image1.Picture = LoadPicture(sFileName)

This is in Excel 2000.

I get "Compile Error: Sub or function not defined," and LoadPicture is
highlighted. sFileName is a variable with a valid, complete path. This
worked early yesterday, now it won't. I did a lot of programming after and
today. What have I done to mess this up?