Vba to unhide a range of rows based on the condition of certain results of multiple options buttons

Detixtwinings

New Member
Joined
Feb 26, 2020
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Currently I have created two questionnaires on excel on the same sheet, one below another. However, I want that when the user opens the excel, questionnaire 2 (rows 87-179) is hidden, until they have completed questionnaire one and satisfying certain criteria.

The first questionnaire has 20 questions and all of them have a yes or no options button (form control) for the user to select. The criteria to unhide questionnaire 2 (rows 87-179) are:

User selects 'Yes' for any one of the follow questions:
8, 9, 10, 11, 12, 18 or 19

AND question 14 must always be 'No' in order for the questionnaire 2 to be unhide.

I have looked through so many forums for an answer but nothing works. I'm new to vba.

Thanks!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,214,832
Messages
6,121,851
Members
449,051
Latest member
excelquestion515

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