Referring to objects in a frame

Glove303

Board Regular
Joined
Dec 18, 2010
Messages
65
Could someone please provide me with the sample code that would allow me to enable all objects in a frame?

Many thanks.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
You can disable the frame (like Frame1.enabled= false) this will disable all contents in the frame
 
Upvote 0
You can disable the frame (like Frame1.enabled= false) this will disable all contents in the frame
Thanks. If I wasn't so particular, this would be adequate. However, I really want all the objects to be greyed out, so it is obvious they are inactive. Simply setting the frame to .enabled = false does not achieve this.
 
Upvote 0
No one?

I'm guessing it's something like:

For all Controls in Me.Controls
If Control.Container Is Frame then
Control.Enabled = False
End if
Next Control

But the container thing isn't working for me.
 
Upvote 0
The Frame also has a controls collection - loop through that instead. :)
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,879
Members
452,948
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top