Hello. I have basically no experience creating macros in Excel, but I am looking to make one for cells A2, A3, A4 to show text in the field if the field is empty.
I found one online, but after I paste it in and try and run, it pops up a "Macro" box, but no Macros to select. Below is the data I found online:
I found one online, but after I paste it in and try and run, it pops up a "Macro" box, but no Macros to select. Below is the data I found online:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$4" Then
If Target = "" Then
' Cell is empty; mark it and make gray
Target = "(Customer Name)"
With Selection.Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = -0.249977111117893
End With
Else
' Cell contains something; remove gray
With Selection.Font
.ColorIndex = xlAutomatic
.TintAndShade = 0
End With
End If
End If
End Sub