Thread: Loading images
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Jason Morin[_3_] Jason Morin[_3_] is offline
external usenet poster
 
Posts: 18
Default Loading images

Thanks! That did the trick.

-----Original Message-----
Jason,

Try this:

Game.Controls("Image" & i).Picture = LoadPicture

("C:\....")

hth,

Doug Glancy

"Jason Morin" wrote

in message
...
I'm loading pictures into Image1, Image2, Image3 on a
useform called "Game". Here's what I have:

For i = 1 To 3
Game.Image & i.Picture = LoadPicture("C:\....")
Next i

The "Image & i" is erroring. What's the correct syntax?
Thx.
Jason



.