How to insert File Properties into the page footer
Hi,
Is it possible to insert automatically whatever value is under File Properties Subject to the page footer? Something like, for instance to insert file path you would go by using &[File] or for sheet name you would use &[Tab], So is there any such way, or workaround for file properties (Subject Field)? Your help is much appreciated, Adnan |
How to insert File Properties into the page footer
Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet.PageSetup .leftfootere = ActiveWorkbook.BuiltinDocumentProperties("Subject" ) End With End Sub 'This is workbook event code. 'To input this code, right click on the Excel icon on the worksheet '(or next to the File menu if you maximise your workbooks), 'select View Code from the menu, and paste the code -- __________________________________ HTH Bob "Adnan" (donotspam) wrote in message ... Hi, Is it possible to insert automatically whatever value is under File Properties Subject to the page footer? Something like, for instance to insert file path you would go by using &[File] or for sheet name you would use &[Tab], So is there any such way, or workaround for file properties (Subject Field)? Your help is much appreciated, Adnan |
How to insert File Properties into the page footer
Bob,
It worked. Thank you so much! Adnan "Bob Phillips" wrote: Private Sub Workbook_BeforePrint(Cancel As Boolean) With ActiveSheet.PageSetup .LeftFooter = ActiveWorkbook.BuiltinDocumentProperties("Subject" ) End With End Sub 'This is workbook event code. 'To input this code, right click on the Excel icon on the worksheet '(or next to the File menu if you maximise your workbooks), 'select View Code from the menu, and paste the code -- __________________________________ HTH Bob "Adnan" (donotspam) wrote in message ... Hi, Is it possible to insert automatically whatever value is under File Properties Subject to the page footer? Something like, for instance to insert file path you would go by using &[File] or for sheet name you would use &[Tab], So is there any such way, or workaround for file properties (Subject Field)? Your help is much appreciated, Adnan |
All times are GMT +1. The time now is 01:54 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com