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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

xenou

MrExcel MVP
Joined
Mar 2, 2007
Messages
16,836
Office Version
  1. 2019
Platform
  1. Windows
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.
 

Montez659

Well-known Member
Joined
May 4, 2005
Messages
918
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,297
Messages
5,836,481
Members
430,434
Latest member
whatabout

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
Top