Is there a way using a Formula to remove all formatting such as borders etc if a test is false?

RudeBoy

Active Member
Joined
Feb 2, 2003
Messages
431
Office Version
  1. 365
Platform
  1. Windows
I have a test to remove the data if it is <> to 0 but the formatting remains for my labels so I wanted to even remove the borders around a cell if the formula is false.
Is there a way to do this?

Thanks for the advise.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
<>0 would be TRUE. Not sure what you mean by if the formula is FALSE.
It sounds like you want to remove the border no matter what.

You didn't give any specific but something like this perhaps:

VBA Code:
Sub test()
Range("C2").Borders.Value = 0
End Sub
 
Upvote 0
<>0 would be TRUE. Not sure what you mean by if the formula is FALSE.
It sounds like you want to remove the border no matter what.

You didn't give any specific but something like this perhaps:

VBA Code:
Sub test()
Range("C2").Borders.Value = 0
End Sub

Let me explain a bit on what I am doing:

I created Labels in Excel with boxes etc boarders.
I have a test if my input is blank I do not push the blank spaces to the labels.
But what happens is I end up with my borders which creates wasted labels as it will print the borders etc.

No big deal but I thought there was a way to remove boarders in my formula.

Here is my formula I am using & a screen shot of everything showing the issue:

=IF($O19<>0,"Mixed Dbl WOMEN"," ")

1722275487204.png


Thanks for any & all help :-)
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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