Excel VBA change footer font and font size

Viewed 1601

The following Excel VBA code automatically changes the footer when a cell value changes, but Excel also changes the font and size. I am trying to keep the font Arial and font size 10. How do I do that? Thanks!

Private Sub Worksheet_Change(ByVal Target As Range)
    On Error Resume Next
    If Target.Address = "$E$4" Then
        ActiveSheet.PageSetup.LeftFooter = Range("$G$4").Value
    End If
End Sub
1 Answers

Try this:

ActiveSheet.PageSetup.LeftFooter = "&""Arial""&10" & Range("$G$4").Value
Related