visable property

amfroehlich

Board Regular
Joined
Jul 14, 2004
Messages
192
I have a drop-down list saying how many approvals are required. Whatever number is selected is i make those controls visable. How can I say if controls have a value those controls should be visable if they don't they should not be visable?

Thanks
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I'm slow, not sure I follow what you're describing.
Are you selecting a number from your pull-down list? And if you select 5, then 5 boxes show up?

Controls on a form, including text box controls can be referenced easily with the format of Me.textbox1 - You can reference the value held in the textbox with Me.textbox1.Value. Bound controls (if the form is bound to a recordsource like a table, also allow you to reference fields using the format of Me.fieldname1.Value.

Latter is relevant because if fieldname1 is held in textbox1 on the form, it is sometimes easier to reference by the fieldname (and the recordsource object).

What I'd suggest is this.

In the _AfterUpdate event for the Combobox (where you select the number of approvals), have your program read the new value and loop through your available text boxes. This could be very simple - if you need 5 text boxes, have it count and open the first five.

Mike
 
Upvote 0

Forum statistics

Threads
1,221,808
Messages
6,162,097
Members
451,741
Latest member
shove

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