M
Mike
In Excel, I can loop through a range more efficiently by utilizing the
following technique:
' The routine checks the value of each cell in the range and
adjusts the Bold property
' of the Font object accordingly.
On Error Resume Next
' Check the cells with constants
For Each cell In Selection.SpecialCells(xlConstants, 23)
If cell.Value < 0 Then cell.Font.Bold = True Else
cell.Font.Bold = False
Next cell
' Check the cells with formulas
For Each cell In Selection.SpecialCells(xlFormulas, 23)
If cell.Value < 0 Then cell.Font.Bold = True Else
cell.Font.Bold = False
Next cell
Is there an equivalent technique in Word? I have to loop through a
rather large table and it is taking too long.
BTW, I got the above technique from John Walkenbach's book.
--Thank you,
--Mike Jr.
following technique:
' The routine checks the value of each cell in the range and
adjusts the Bold property
' of the Font object accordingly.
On Error Resume Next
' Check the cells with constants
For Each cell In Selection.SpecialCells(xlConstants, 23)
If cell.Value < 0 Then cell.Font.Bold = True Else
cell.Font.Bold = False
Next cell
' Check the cells with formulas
For Each cell In Selection.SpecialCells(xlFormulas, 23)
If cell.Value < 0 Then cell.Font.Bold = True Else
cell.Font.Bold = False
Next cell
Is there an equivalent technique in Word? I have to loop through a
rather large table and it is taking too long.
BTW, I got the above technique from John Walkenbach's book.
--Thank you,
--Mike Jr.