I have a list of numbers in COL b and letters in COL C. This macro will make the numbers in B bold or italic depending on the case of the letter that may exist next to it in COL C. Before, one one letter could exist in COL C but now there could be multiple letter like BbC. If there exists a Cap and a lower case letter the number to the left needs to be in bold and italic (bold italic). I don’t know how to program the macro to look in the cell and if there is an upper and a lowercase letter to make the cell to the left bold italic. Thank you for the help.
endcol = InputBox(“How many columns are there?”)
Application.ScreenUpdating = False
For j = 1 To endcol Step 3
For i = 0 To lLastRow
With ActiveSheet.Range(“A1”)
If .Offset(i, j + 1).Value = “” Then
.Offset(i, j).Font.Bold = False
.Offset(i, j).Font.Italic = False
Else
If .Offset(i, j + 1).Value = UCase(.Offset(i, j + 1).Value) Then
.Offset(i, j).Font.Bold = True
.Offset(i, j).Font.Italic = False
Else
.Offset(i, j).Font.Bold = False
.Offset(i, j).Font.Italic = True
End If
End If
End With
Next i
Next j