Thread: Loading images
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Doug Glancy Doug Glancy is offline
external usenet poster
 
Posts: 770
Default Loading images

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