A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Sub Footer()
Const FontSize = 8
ActiveSheet.PageSetup.LeftFooter = "&" & FontSize & Range("UKaddress").Value
End Sub
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I currently have a drop down box in excel that populates the left footer on my sheet with addresses as shown below
Sub footer()
ActiveSheet.PageSetup.LeftFooter = Range("UKaddress").Value
End Sub
But i need to define the font size to use for the left footer
any help much appreciated
Adrian
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Sub Footer()
Const FontSize = 8
ActiveSheet.PageSetup.LeftFooter = "&" & FontSize & Range("UKaddress").Value
End Sub
The code worked, Great
When i try to set the right and left footer using the same method the code fails.
Sub FootL()
Const FontSize = 12
ActiveSheet.PageSetup.LeftFooter = "&" & FontSize & Range("UKaddress1").Value
ActiveSheet.PageSetup.RightFooter = "&" & FontSize & Range("UKaddress2").Value
End Sub
Any help much appreciated
Thank you @andreas code work fine