Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Use Loop to set Picture Property of image on User Form

I have designed a user form with Team Graphics for a results ladder
named after the Teams eg, "Hawks", "Cats" etc.... (16 in all)
I need to be able to assign these picture properties to other image controls
on both Worksheets and other UserForms by using a variable
lets say there is are 16 images on Worksheet "Ladder" Called Team1, Team2
etc how do I loop through through these images of this worksheet and assign
the right picture based on a variable Team Name. Don't laugh but I am
currently getting around this with 16 sets of subs using 16 Select Case lines?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Use Loop to set Picture Property of image on User Form

Nam e the pictures the same as the team name. You can select the picture
using hte following:

Set MyPicture = Sheets("Sheet2").Pictures("Hawks")

I would need to see more of your code to give you a better answer.




"OzziePete" wrote:

I have designed a user form with Team Graphics for a results ladder
named after the Teams eg, "Hawks", "Cats" etc.... (16 in all)
I need to be able to assign these picture properties to other image controls
on both Worksheets and other UserForms by using a variable
lets say there is are 16 images on Worksheet "Ladder" Called Team1, Team2
etc how do I loop through through these images of this worksheet and assign
the right picture based on a variable Team Name. Don't laugh but I am
currently getting around this with 16 sets of subs using 16 Select Case lines?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
animated image in user form Nayan Excel Programming 2 June 18th 07 05:16 PM
Image in user form [email protected] Excel Programming 2 March 30th 07 05:12 AM
Could not set the Text property of a ComboBox on User Form. NickHK Excel Programming 2 December 13th 06 11:30 AM
Could not set the Text property of a ComboBox on User Form. John Bundy Excel Programming 0 December 11th 06 11:58 PM
Programatically control picture property of Image control Brassman[_5_] Excel Programming 5 May 24th 05 09:32 PM


All times are GMT +1. The time now is 06:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"