Show and Hide Label Controls based on cell on another sheet

muzunova

New Member
Joined
Jul 16, 2011
Messages
3
Greetings again,

I am trying to make two label controls (Active-X) behave according to the value of a cell on another sheet. The cell contains a formula that calculates a balance. Since these calculations shouldn't be visible to the user, the calculation sheet is hidden and the only knowledge of the nature of the balance should come from the two labels on the first sheet.

- If the balance of positive, a "good" label should appear, stating that the strategy is sustainable;
- If it is negative, a "bad" label appears, stating that the strategy is unsustainable.

When one of the labels appears, the other one should hide.

I've tried searching the forum and other forums through Google and came to a code that doesn't seem to be working...

I am attaching a stripped down example of what I am trying to do (the actual file is too big).

Would be great if someone can help or point to the mistakes in the code.

Here is the Excel file.

Thanks in advance!

Cheers,
Marina
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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