G
Guest
I'm trying to create an If/Then statement in Visual Basic, but I cannot get it to work. What I want is to have the test in a cell in BOLD depending on the condition (whether a number equals 1,2, or 3. "P13" is the cell the condition is located and Q16, Q18, and Q20 are the cells I want bolded. Here is my attempt that's not working. Any replys are appreciated.
If "P13" = 1 Then
Range("Q16").Select
Selection.Font.Bold = True
ElseIf "P13" = 2 Then
Range("Q18").Select
Selection.Font.Bold = True
Else
Range("Q20").Select
Selection.Font.Bold = True
End If
If "P13" = 1 Then
Range("Q16").Select
Selection.Font.Bold = True
ElseIf "P13" = 2 Then
Range("Q18").Select
Selection.Font.Bold = True
Else
Range("Q20").Select
Selection.Font.Bold = True
End If