Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ecalvo
 
Posts: n/a
Default How can I using Excel custom document properties in the header?

I can set it up in the File\Properties menu item under the Custom tab, but I
cannot figure out how to reference that custom vaue anywhere in the Excel
Spreadsheets or in the Header or Footer of each spreadsheet.
  #2   Report Post  
Chris Lavender
 
Posts: n/a
Default How can I using Excel custom document properties in the header?

You can reference it through VBA, eg

ActiveWorkbook.CustomDocumentProperties("Project") .Value

and then use VBA to insert the value in a cell or header/footer

Best rgds
Chris Lav

"ecalvo" wrote in message
...
I can set it up in the File\Properties menu item under the Custom tab, but

I
cannot figure out how to reference that custom vaue anywhere in the Excel
Spreadsheets or in the Header or Footer of each spreadsheet.



  #3   Report Post  
Duke Carey
 
Posts: n/a
Default How can I using Excel custom document properties in the header?

Only by using VBA. Anything that you create as a Custom property is accessed
by referencing the Workbook's CustomDocumentProperties collection. You can
access Excel's canned properties by referencing the Workbook's
BuiltinDocumentProperties collection

"ecalvo" wrote:

I can set it up in the File\Properties menu item under the Custom tab, but I
cannot figure out how to reference that custom vaue anywhere in the Excel
Spreadsheets or in the Header or Footer of each spreadsheet.

  #4   Report Post  
ecalvo
 
Posts: n/a
Default How can I using Excel custom document properties in the header

Thanks. But how would I do that?

"Duke Carey" wrote:

Only by using VBA. Anything that you create as a Custom property is accessed
by referencing the Workbook's CustomDocumentProperties collection. You can
access Excel's canned properties by referencing the Workbook's
BuiltinDocumentProperties collection

"ecalvo" wrote:

I can set it up in the File\Properties menu item under the Custom tab, but I
cannot figure out how to reference that custom vaue anywhere in the Excel
Spreadsheets or in the Header or Footer of each spreadsheet.

  #5   Report Post  
Duke Carey
 
Posts: n/a
Default How can I using Excel custom document properties in the header

Do you know the rudiments of using VBA? If no, then start by looking at
David McRitchie's website

http://www.mvps.org/dmcritchie/excel...m#vbatutorials

and/or Chip Pearson's

http://www.cpearson.com/excel/codemods.htm

and/or JE MCGimpsey's

http://www.mcgimpsey.com/excel/index.html

Once you have the rudiments, then you'll want to use the Wokrbook's
Workbook_BeforePrint event to update the page headers and footers.

While there are lots of people in the Worksheet function NG that also
provide answers in the VBA programming NG, your best forum for getting coding
help is in the VBA group

Good luck








"ecalvo" wrote:

Thanks. But how would I do that?

"Duke Carey" wrote:

Only by using VBA. Anything that you create as a Custom property is accessed
by referencing the Workbook's CustomDocumentProperties collection. You can
access Excel's canned properties by referencing the Workbook's
BuiltinDocumentProperties collection

"ecalvo" wrote:

I can set it up in the File\Properties menu item under the Custom tab, but I
cannot figure out how to reference that custom vaue anywhere in the Excel
Spreadsheets or in the Header or Footer of each spreadsheet.

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
excel - insert cell contents in a custom header / footer b Excel Discussion (Misc queries) 0 August 25th 05 06:51 PM
How do I setup a header in Excel that prints only on first page? mikesam7 Excel Discussion (Misc queries) 3 August 24th 05 08:16 PM
How to set a custom header as a row from the spreadsheet? ruthie Excel Discussion (Misc queries) 2 April 21st 05 06:48 AM
Enter an Excel cell reference as part of a custom header/footer Suegi123 Excel Worksheet Functions 1 April 1st 05 10:55 PM
Copying an Excel spreadsheet to a Word document KG Excel Discussion (Misc queries) 1 November 28th 04 07:38 PM


All times are GMT +1. The time now is 07:03 PM.

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

About Us

"It's about Microsoft Excel"