Simple Visible/Enabled Question

Montez659

Well-known Member
Joined
May 4, 2005
Messages
918
If a control property is set to invisible, is it automatically disabled? If it was just invisible, could the user still technically tab to it if tab stop was enabled and press the space bar to activate it (i.e., a button)?

Many thanks!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Users could not interact with an invisible control - there's no way to edit it or tab to it. But it is not automatically disabled and you could still use the invisible control via your form code or by way of references to it.

This makes for a lot of possible ways to control access to controls - but I assume in general you disable controls that aren't needed in context, lock controls you don't want the user to edit but don't mind if they see, and hide controls that are irrelevant to the user but may assist in the "behind the scenes" functioning of the form.
 
Upvote 0
Thanks for the clarification. I just had a lot of redundancy in my code of making certain objects both invisible and disabled. I can cut out about half my code now.
 
Upvote 0

Forum statistics

Threads
1,216,297
Messages
6,129,956
Members
449,545
Latest member
SURY

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