Need to edge out the competition for your dream job? Train for certifications today.
Dim xCell As Range
Dim xRange As Range
Dim xBlank As Boolean
Dim i As Long
If TypeName(Selection) <> "Range" Then
MsgBox ("Current selection type is " & TypeName(Selection) & " - run cancelled.")
Set xRange = Intersect(Range("A:A"), Selection.EntireRow)
For Each xCell In xRange
xBlank = False
For i = 1 To 14
If xCell.Offset(0, i) <> "" Then Exit For
If i = 14 Then xBlank = True
If xBlank Then
xCell.Offset(0, 1).Resize(1, 14).Interior.Color = 65535
xCell.Offset(0, 1).Resize(1, 14).Interior.Pattern = xlNone
Open in new window
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
.PatternColorIndex = xlAutomatic
.Color = 65535
.TintAndShade = 0
Selection.FormatConditions(1).StopIfTrue = False
This course will introduce you to C++ 11 and teach you about syntax fundamentals.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.