#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default properties in header

Is there a way to include file properties in a custom header?

For example, I've defined a custom file property, "Property Name", would
like the user to enter that value when opening the workbook, and have
whatever is entered displayed in the heading when printing.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default properties in header

This does not answer your specifics, but for Builtin properties:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
s = ActiveWorkbook.BuiltinDocumentProperties("author")
ActiveSheet.PageSetup.CenterHeader = s
End Sub

in ThisWorkbook code, not a standard module. Can be adapted for Custom.
--
Gary's Student


"IMFletch" wrote:

Is there a way to include file properties in a custom header?

For example, I've defined a custom file property, "Property Name", would
like the user to enter that value when opening the workbook, and have
whatever is entered displayed in the heading when printing.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort does not recognize the header row Notbefore10 New Users to Excel 4 October 25th 06 02:27 AM
Can XLS automatically insert file properties fields into a header Margaret Johnson Excel Worksheet Functions 1 June 1st 06 03:43 AM
How can I using Excel custom document properties in the header? ecalvo Excel Worksheet Functions 4 November 3rd 05 09:29 PM
Document Properties in Header or Footer Rohullah Najafi Excel Discussion (Misc queries) 1 January 6th 05 02:59 PM
Printing the page properties as header r_najafi Excel Discussion (Misc queries) 1 January 6th 05 02:59 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"