Conditional Formatting - Making cells invisible

andrewb90

Well-known Member
Joined
Dec 16, 2009
Messages
1,077
Hello All,

I am trying to enter a formula into conditional formatting that makes a certain cell range 'disappear.' Since I am pretty sure I can't hide individual cells, I am trying to turn all the text fill and borders white to become unnoticeable. My formula I am using is this:
=IF+$M$3<5
I have the effects that I want selected to take place if M3 is any number less than 5 but I don't seem to see anything happening.

Any suggestions would be great.
(Using Excel 2010)

Thanks,

Andrew
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Thanks, that seemed to work.
One of my cells has words in two different colors and the colors will not change. Any way around that?
Also I have a button in/on one of the cells. Any way to cover and/or hide it as well?
 
Upvote 0
Hmm. I just tried that and it appears that manually coloring the font seems to take precedence over CF. I don't believe it is possible to hide objects like buttons using CF.
 
Upvote 0
Is it possible to move or alter a button? If not is it possible to assign macros to cells instead of objects?

Thanks,

Andrew
 
Upvote 0
This worked for me: right click the sheet tab, select View Code and paste in

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(False, False) = "M5" Then Me.Buttons("Button 1").Visible = Target.Value >= 5
End Sub

change the name of the button to suit.
 
Upvote 0
No, you need to change Button 1 in the code to the actual name of your button.
 
Upvote 0
How do I know what my button is called? Unless it is the name of the macro assigned to it.
 
Upvote 0
Is this a regular button (from the Forms toolbar) or an ActiveX button (from the Controls toolbar)?

For a regular button, click on it and its name will be displayed in the Name Box.

For an ActiveX button, go into Design Mode then click the button to display its name in the Name Box. this type of button would require different code.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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