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!
 

Some videos you may like

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

xenou

MrExcel MVP
Joined
Mar 2, 2007
Messages
16,694
Office Version
  1. 2013
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,109,362
Messages
5,528,258
Members
409,811
Latest member
pjwhyman

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top