Using Excel Script how can you change the font name of cells on a sheet if they have a specific Value?
I need to change cells to font name "Wingdings" if the cell has a "ü" as the value. The regular font name is "Calibri". The sheet range is $1:$1048576.
Was originally doing VBA which I need to transfer to ExcelScript.
VBA code:
Sub FormatText(ByVal Target As Range)
If Target.Range("$1:$1048576") Then
If Target.Value = "ü" Then
Target.Font.Name = "Wingdings"
Else
Target.Font.Name = "Calibri"
End If
End If
End Sub