A
Artimues
Product - Excel 2007
I have an issue in the time frame it takes to type in information into my
worksheet after creating multiple conditional formats for cells in it. My
intent is to make formatting of some cells turn gray if a previous column
cell has a specific data value.
The problem comes in to effect because I have over 5000+ conditional formats
now in the workbook. This is causing A LOT (5+ seconds) of lag input delay
time every time a cell is changed. (I used visual basic to enter in the
respective variables as shown below) I am *hoping* that instead of creating
EACH cell to have a conditional format for ONE CELL at a time, I could have a
column of cells that would change based upon the respective row value.
This is the macro I created to create the conditional formatting - I am
hoping that in lieu of having many conditional formats, by having 1
conditional format in a formula reference, this will cause my system to have
less delay @ the input stage.
For A = 0 To 1499
Range("N7").Select
ActiveCell.Offset(A, 0).Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=" &
ActiveCell.Offset(0, -2).Address & "=""NF"""
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorDark1
.TintAndShade = -0.14996795556505
End With
Selection.FormatConditions(1).StopIfTrue = False
Next
I have an issue in the time frame it takes to type in information into my
worksheet after creating multiple conditional formats for cells in it. My
intent is to make formatting of some cells turn gray if a previous column
cell has a specific data value.
The problem comes in to effect because I have over 5000+ conditional formats
now in the workbook. This is causing A LOT (5+ seconds) of lag input delay
time every time a cell is changed. (I used visual basic to enter in the
respective variables as shown below) I am *hoping* that instead of creating
EACH cell to have a conditional format for ONE CELL at a time, I could have a
column of cells that would change based upon the respective row value.
This is the macro I created to create the conditional formatting - I am
hoping that in lieu of having many conditional formats, by having 1
conditional format in a formula reference, this will cause my system to have
less delay @ the input stage.
For A = 0 To 1499
Range("N7").Select
ActiveCell.Offset(A, 0).Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=" &
ActiveCell.Offset(0, -2).Address & "=""NF"""
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorDark1
.TintAndShade = -0.14996795556505
End With
Selection.FormatConditions(1).StopIfTrue = False
Next