Hi to all,
it's possibile chande this macro for excel2007?
this part not work for excel 2007
thank you
max
it's possibile chande this macro for excel2007?
Code:
Sub fixCF_Formatting()
On Error Resume Next
Dim CF_range As Range
Set CF_range = ActiveSheet.Cells.SpecialCells(xlCellTypeAllFormatConditions)
On Error GoTo 0
If Not CF_range Is Nothing Then
Application.ScreenUpdating = False
Dim cell As Range
For Each cell In CF_range
If cell.Interior.Color <> cell.DisplayFormat.Interior.Color Then _
cell.Interior.Color = cell.DisplayFormat.Interior.Color
Next cell
' remove the CF if desired
CF_range.FormatConditions.Delete
End If
End Sub
this part not work for excel 2007
Code:
If cell.Interior.Color <> cell.DisplayFormat.Interior.Color Then _
cell.Interior.Color = cell.DisplayFormat.Interior.Color
max
Last edited by a moderator: