I have the solution to remove conditional formatting, but leave format as is.
However, I have a large range to cover. I tried running AP through BB but, it took 20 minutes.
I broke it down to run one column at a time and it runs much smoother.
I need to: Make the macro loop through a range, instead of having to run each separately.
And if someone has an idea that works faster.... Please help.
Thanks
Sub CLEARCFS()
Application.Run "FormatrulesAP"
Application.Run "FormatrulesAQ"
Application.Run "FormatrulesAR"
Application.Run "FormatrulesAS"
Application.Run "FormatrulesAT"
Application.Run "FormatrulesAU"
Application.Run "FormatrulesAV"
Application.Run "FormatrulesAW"
Application.Run "FormatrulesAX"
Application.Run "FormatrulesAY"
Application.Run "FormatrulesAZ"
Application.Run "FormatrulesBA"
Application.Run "FormatrulesBB"
End Sub
Sub FormatrulesAP()
Dim ws As Worksheet
Dim mySel As Range, aCell As Range
'~~> Change this to the relevant sheet
Set ws = ThisWorkbook.Sheets("Synt")
'~~> Change this to the relevant range
Set mySel = ws.Range("ap4:Ap50000")
For Each aCell In mySel
With aCell
.Font.FontStyle = .DisplayFormat.Font.FontStyle
.Interior.Color = .DisplayFormat.Interior.Color
.Font.Strikethrough = .DisplayFormat.Font.Strikethrough
.Interior.Pattern = .DisplayFormat.Interior.Pattern
End With
Next aCell
mySel.FormatConditions.Delete
End Sub
Sub FormatrulesAQ()
Dim ws As Worksheet
Dim mySel As Range, aCell As Range
'~~> Change this to the relevant sheet
Set ws = ThisWorkbook.Sheets("Synt")
'~~> Change this to the relevant range
Set mySel = ws.Range("aQ4:AQ50000")
For Each aCell In mySel
With aCell
.Font.FontStyle = .DisplayFormat.Font.FontStyle
.Interior.Color = .DisplayFormat.Interior.Color
.Font.Strikethrough = .DisplayFormat.Font.Strikethrough
.Interior.Pattern = .DisplayFormat.Interior.Pattern
End With
Next aCell
mySel.FormatConditions.Delete
End Sub