VBA Challenge with conditions

MrMel76

New Member
Joined
Apr 14, 2019
Messages
6
OK here the thing.

I have created a sheet for my work that shows financial data.
But this data I only want visible based on several conditions( possibilities)
To make matters more complicated more than one condition can occur.
Also These conditions are triggered by cell value based on a dropdown selection In one case A this cell value is on a different sheet

I have marked the areas A /B/C/D with also signify the condition options.
A= (number of people) I want to make part of my selection with a max of 5 ( which will be triggered from a different sheet
B= if contractual salary growth conditions are taken into account
C=Perfromance bonus taken into account
D= Performance Bonus not taken into account so only salary growth is taken into account.

Never mind the logic of these conditions as this a mock example


The possibilities are: from starting point A/B/C/D so eveything visible

  • A
  • A/B
  • A/B/C
  • A/B/D
  • B
  • B/C
  • B/D
  • C
  • C/D
  • D

Now i have solved this with grouping and conditional formating, but I thought maybe I could make it a bit fancier with VBA as this is going to be used company wide.
Can this be done with VBA?

I wll upload a screenshot.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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