for loop to accept values

jmevius

New Member
Joined
Mar 31, 2002
Messages
4
I am currently working on an Excel file that estimates time to assemble a unit. I would like to include a combination of yes/no buttons and a for loop to accomplish one section but can't figure out how to implement.

For example, on the question and answer form, a question might read:

"Does the unit have parts with multiple interfaces?" with Yes/No buttons beside them.

If Yes is pressed, I would like unhide a cell that asks how many parts with multiple interfaces are on the unit.

Then I would like to unhide enough rows to ask how many interfaces each part has.

For example, if there are 4 parts with multiple interfaces on a unit, I would like to unhide 4 rows. The first row would ask how many interfaces part #1 has. The second row would ask how many interfaces part #2 has, etc.

I could guarantee a maximum value, like there would be no more than 15 components.

Any ideas how this could be easily implemented for a non-Excel-guru?

Thanks,
Jason
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Ever thought about using a userform with dynamic numbers of texboxes instead of hiding and unhiding rows in a worksheet? Do a search on this board for dynamically adding controls.
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,577
Members
449,039
Latest member
Arbind kumar

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