View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Jake Marx[_3_] Jake Marx[_3_] is offline
external usenet poster
 
Posts: 860
Default Hide all images on userform

Hi Jason,

As Juan Pablo noted, you can accomplish this at design time. Here's how you
could do it at runtime:

Private Sub UserForm_Initialize()
Dim ctl As Control

For Each ctl In Controls
If TypeOf ctl Is MSForms.Image _
Then ctl.Visible = False
Next ctl
End Sub

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]


Jason Morin wrote:
Upon initializing, I need to set the visible property for
all images on a user form (named "Game") to false. Having
trouble. Thx.
Jason