asked on
ASKER
Sub CondtionalFormats()
Dim vCells As Range
For Each vCells In Range("B1:T32768").Cells
If Left(vCells.Text, 4) = "Book" Then
vCells.Interior.ColorIndex = 43
vCells.Borders.LineStyle = xlContinuous
vCells.Borders.Weight = xlThin
End If
Next vCells
End Sub
ASKER
ASKER
Sub CondtionalFormats()
Dim vCells As Range
For Each vCells In Range("B1:B" & Range("B" & Rows.Count).End(xlUp).Row).Cells
If Left(vCells.Text, 4) = "Book" Then
With Range(Cells(vCells.Row, "B"), Cells(vCells.Row, "T"))
.Interior.ColorIndex = 43
.Borders.LineStyle = xlContinuous
.Borders.Weight = xlThin
End With
End If
Next vCells
End Sub
Sub CondtionalFormats()
Dim vCells As Range
For Each vCells In Range("A1:A" & Range("A" & Rows.Count).End(xlUp).Row).Cells
If Left(vCells.Text, 4) = "Book" Then
With Range(Cells(vCells.Row, "B"), Cells(vCells.Row, "T"))
.Interior.ColorIndex = 43
.Borders.LineStyle = xlContinuous
.Borders.Weight = xlThin
End With
End If
Next vCells
End Sub
ASKER
ASKER
Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.
TRUSTED BY
Or columns B to T words staring Book?