I am trying to set a custom footer in excel 2003. I have created a module with the formatting information in it but all I get is the variable in the footer. Any help would be appreciated.
In the footer I have [dtmDate] in the left section
In the footer I have [dtmDate] in the left section
Code:
Public Sub SetFooter()
' put customer name, date and Order# in footer
' [URL unfurl="true"]www.contextures.com[/URL]
Dim wb As Workbook
Dim wsOrder As Worksheet
Dim dtmDate As Date
Set wb = ThisWorkbook
Set wsOrder = wb.Sheets("Orders")
dtmDate = wsOrder.Range("OrderDate").Value
With wsOrder.PageSetup
.LeftFooter = _
Format(dtmDate, "dddd, mmmm dd,yyyy")
End With
End Sub