Thread: Loading images
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Juan Pablo González Juan Pablo González is offline
external usenet poster
 
Posts: 226
Default Loading images

What I do is this:

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

--
Regards,

Juan Pablo González

"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