I have a worksheet with conditional formatting. I need to remove the conditional formulas, but when I do and they are gone, I save the sheet, exit, and re-load the sheet. When I check, the formulas are back. How can I get rid of them permanently?
I think you are removing rules from some selected cells. You can remove conditional formatting rules from entire sheet. See below screenshot.
Related
I have a worksheet that has 5 rules that change the color of a row based on formulas. When users paste data into the worksheet, the conditional formatting for these rules duplicates. How can I prevent that?
Also, How would I set up VBA to automatically check the sheet after changes and correct formatting that is incorrect?
I was curious how to do temporarily turn off Conditional Formatting in excel for a subset of my cells and I didn't see an answer so I'll post a solution and see if others have a better solution.
This is what worked for me:
I just highlighted all the cells which will bring up all the rules
applicable to all the cells. So just made a 'square' selection of
the cells. Its fine if it has a mix of Conditional Formatted cell
and regular non-formatted cells (the Manage Rules will only list the cells which actually have Cond Formatting rules applied to them).
click ConditionalFormatting->Manage Rules
Add a rule at the very top which applies to all these cells.
a. set the 'Rule' text to '=TRUE()' (without the apostrophe's)
b. set the 'Format' to 'No Format Set' (aka by setting a white background)
c. leave the 'Applies to' section alone since you already selected the cells via a selection but if you need to fix you can do here.
d. check the 'Stop If True'
Click Apply/OK
(optional) Repeat with another selection area if needed (if the square selection didnt cover all the areas you wanted).
This should work. If you need to unset it... highlight the cells and remove this top 'override' rule or set it to '=FALSE()' (without the apostrophe's) if you think you'll be switching formatting off/on constantly vs just temporarily.
I currently have a spreadsheet that has conditional formatting to change the colors of the rows, from column A-L, based upon the value of column "D" (Pending and Active change to yellow, Scheduled and Forwarded change to green, and Discontinued and Cancelled change to red).
I however have several worksheets in this once excel document which I would like to extend the same rules to. Is there a way to apply these rules to the other worksheets in the doc, or will I have to manually enter them for each doc?
Having a single rule apply to several sheets does not seem to be possible.
Source: http://excelribbon.tips.net/T003433_Applying_Conditional_Formatting_to_Multiple_Worksheets.html
It could be possible, however, to copy a conditional formatting rule you have set for one sheet to another (see link). The link's suggestions include
copying the conditional formatting - select the formatted cells in original sheet; click the Format Painter (on the Home tab of the ribbon); switch to the target worksheet; select the cells to which the formatting should be applied
macro recorder - run the macro recorder while setting up the conditional formatting; re-run the macro as you display each of your other worksheets. Detailed instructions:
go to View->Macros->Record Macro-OK
now add your conditional formatting rules to the current worksheet
go to View->Macros->Stop Recording
now you can switch to any sheet and apply the same formatting rules by executing your macro (View->Macros->View Macros->Run)
How does one stop the Delete method from deleting the cells formatting too.
When I use
rng.Hyperlinks(1).Delete
it deletes the cell formatting along with the cells conditional formatting.
Is this by design?
If you're getting rid of all the hyperlinks, you can use rng.clearhyperlinks and the formatting should persist.
FWIW, although I don't know for sure, I suspect the issue is that adding a hyperlink applies the Hyperlink style to the cell and someone thought it would be a good idea to clear the formatting when the link was deleted. Just wasn't fully, or well, implemented!
I ran into a peculiar behavior today that I need help with. I have a range(A2:C3) that I'm using conditional formatting to hide based on a yes/no dropdown (A1). It basically sets font/border/and bg color to white. There's a cell with a hyperlink (A3) to clear the contents of the range (A2:C3) which should be included when the range formatting is changed.
It works well until you click the link, then it isn't included with the range for conditional formatting for some reason. Any ideas on a solution to get followed hyperlinks to behave as new hyperlinks? I'd like to keep everything within the conditional formatting scheme to save myself a heap of work but if VBA is needed that's fine. Thanks!
Select the column, row or cells.
Format Cells
Uncheck normal font.
:)
This deselects auto formating for things like hyper links.