Accessing Screen Objects from a Script on Another Object Screen

<< Click to Display Table of Contents >>

 

Accessing Screen Objects from a Script on Another Object Screen

In this case, users can use the Parent or the Screen method, according to the next figure and example.

InitialScreen is the parent object of Rectangle1 and Rectangle2

InitialScreen is the parent object of Rectangle1 and Rectangle2

 

Sub Rectangle1_Click()
  Parent.Item("Rectangle2").Visible = True
End Sub

Was this page useful?