Yamasaki450
Board Regular
- Joined
- Oct 22, 2021
- Messages
- 71
- Office Version
- 2021
- Platform
- Windows
Hey. Thanks but i have no clue how to write macro code heh Thats why im asking here if someone is willing to write it.Hi Yamasaki,
What have you tried so far?
See if you can create a macro that:
Sets a range, Ideally either a selection, or a hard coded range.
Then for each cell in the range check to see if the interior color is red.
if it is clearcontents.
if not move on.
Sub ClearRedCells()
Dim Cell As Range
Application.ScreenUpdating = False
For Each Cell In Range("F3:L23")
If Cell.DisplayFormat.Interior.Color = vbRed Then
Cell.Clear
End If
Next
Application.ScreenUpdating = True
End Sub
What is formula of the conditional formatting?Cells are highlighted with conditional formatting.
This does what i want but its too slow even for one row of data (1200 cells).Does this macro do what you want (it physically clears the cells that are shown in red)...
I used this formulas to give cells color "=AND($C2=3,D2<=-4,D2>=-65)"If this is a follow-up question for the thread titled "vba-macro-to-delete-highlighted-cells," please provide the link to the thread so that everyone who reads this can understand the context. An important detail from the previous thread is that you are working with over 14 million cells.
What is formula of the conditional formatting?
I didnt use formula in post #1. I did it manually with conditional formatting rule just to show what i want... I didnt know that formula is important... Here is example with formula.But in your example in post #1 there are no data in col C, why?