Show/Hide Shape conditionally

ZPar

New Member
Joined
Aug 3, 2022
Messages
1
Office Version
  1. 365
  2. 2019
  3. 2013
  4. 2007
Platform
  1. Windows
Hi guys. I'm very new to VBA so excuse my childish questions. I have he following issue.

I got two worksheets named "Form" and "Data". Both are password protected and "Data" is also hidden.

I need to hide or show a shape (let's call it "Rec 1") placed in "Form" sheet. The condition is that the value of Cell C22 in "Data" sheet is "---".
C22 gets its values via a Choose( ) command depending on the choice of a combo box (in "Form") so basically it has a formula in it and not a value.

Alternatively
Cell "M_New" (in "Data") is fed by a group of radio buttons located in "Form" sheet. (Possible values are 1 or 2)
Cell "D_New" (in "Data") is fed by a combo box (not activeX) located in "Form" sheet. (Possible values are 1, 2 or 3).

I need the following: When M_New = 1 AND D_New =3 Then Shape "Rec1" (in "Form" sheet) must the Visible Else Hidden.
After that, both sheets must be protected and "Data" sheet Very Hidden.

Can anyone assist?
Thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,214,606
Messages
6,120,478
Members
448,967
Latest member
visheshkotha

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