Sub UpdateFooter()
MyFile = ActiveWorkbook.FullName
ActiveSheet.PageSetup.CenterFooter = _
MyFile
With ActiveSheet.PageSetup
.LeftFooter = “&8&D&T”
.CenterFooter = “&8&C:My DocumentsInvestments”
.RightFooter = “&8&A”
End With
End Sub
I have this macro which automatically inserts the file path into the footer on a spreadsheet. The default font size in Excel is 10pt. I would like the footer to be 8pt. I’m able to change the font size on the left and right footers but can’t figure out how to change the macro so that it will change the font size in the center footer while still going out and looking for the path of the particular spreadsheet. In my example above the path is ‘hard coded’ in.
Any suggestions?
Thanks in advance.
Christa