Hide rows based on prior setup sheet

edjohn20

New Member
Joined
Mar 5, 2024
Messages
34
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
I know there is VBA code to do this. I don't know VBA well enough to write it. However I know exactly what I want to do.

I have a worksheet 1 titled "Setup" and worksheet 2 titled "MMS PaaS Pricing 2024"

I have configurable in Setup B4 to B11. This field will be either YES or NO (chosen from drop down)

core
IF b4=NO the Hide "MMS PaaS Pricing 2024" rows 9-15
cm
IF b5=NO the Hide "MMS PaaS Pricing 2024" rows 16-21
sc
IF b6=NO the Hide "MMS PaaS Pricing 2024" rows 22-30
acm
IF b7=NO the Hide "MMS PaaS Pricing 2024" rows 31-38
ssm
IF b8=NO the Hide "MMS PaaS Pricing 2024" rows 39-46
lca
IF b9=NO the Hide "MMS PaaS Pricing 2024" rows 47-55
web
IF b10=NO the Hide "MMS PaaS Pricing 2024" rows 56-63
movr
IF b11=NO the Hide "MMS PaaS Pricing 2024" rows 64-69

There are also formulas and values within the cells to be hidden that need to be suppressed as well. Meaning if SC section is NO then the fees and values do not get included.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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