On Error Resume Next For Each rCell In Selection Select Case rCell.Value Case Is <= 0.8 rCell.Interior.ColorIndex = 3 Case Is <= 1 rCell.Interior.ColorIndex = 10 Case Else rCell.Interior.ColorIndex = xlAutomatic End Select Next rCell
On Error Resume Next For Each rCell In Selection Select Case rCell.Value Case Is = "" rCell.Interior.ColorIndex = xlAutomatic Case Is <= 0.8 rCell.Interior.ColorIndex = 3 Case Is <= 1 rCell.Interior.ColorIndex = 10 Case Else rCell.Interior.ColorIndex = xlAutomatic End Select Next rCell
On Error GoTo 0 Set rCell = Nothing End Sub
Prøv at starte makrobåndoptageren, så vil du kunne vælge at gemme makro'en en personlig workbook - den er altid tilgængelig på din maskine.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.