Hiding a row from a macro in another tab

rintelen

Board Regular
Joined
Jul 30, 2006
Messages
96
I have a spreadsheet which contains two tabs both protected (and need to be).

The Customer Details tab has a dropdown in it that a alters a value so it is either 0 or 1.
This value is in cell R5 (on the customer details tab).

When this value is 0 I want Row 9 in PV Calculator tab (which already has a macro in its view code that does something else) to un-hide or continue to show its ROW 9.

When the value above is 1 then I want the PV calculator tab row 9 to be hidden. It must be updated by the time the user clicks this tab not after they click inside the tab. (It is hiding a drop down).

I am not very good at this kind of thing.

I need to use View Code I guess in CUstomer Details to add a macro that affects the PV calculator tab in this way but at the same time does not compromise the fact that both need to be protected.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
You could use the Worksheet Activate event of the PV calculator tab.
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,513
Members
452,921
Latest member
BBQKING

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