ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Auto Path in Footer (https://www.excelbanter.com/excel-programming/271678-auto-path-footer.html)

Abdul Salam

Auto Path in Footer
 
Hello,

The folowing code will give you full path with font size 8
change &8 to deisired number to get another font size.

With ActiveSheet.PageSetup
.LeftFooter = "&8&Z&F"
End With


Abdul Salam

-----Original Message-----
I use the following code to enter the network path into
the footer of my worksheet

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter =

ActiveWorkbook.FullName
End Sub

How can I change the code so it does not use the default
font size? The default is currently 10 and I want the
path to be 8

Thank you

.



All times are GMT +1. The time now is 11:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com