Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel - insert cell contents in a custom header / footer | Excel Discussion (Misc queries) | |||
How do I setup a header in Excel that prints only on first page? | Excel Discussion (Misc queries) | |||
How to set a custom header as a row from the spreadsheet? | Excel Discussion (Misc queries) | |||
Enter an Excel cell reference as part of a custom header/footer | Excel Worksheet Functions | |||
Copying an Excel spreadsheet to a Word document | Excel Discussion (Misc queries) |