Add Property Fields to Excel Header/Footer

Pivot

New Member
Joined
Oct 27, 2002
Messages
13
I've been asked to create a template for documents created in the company I work for.

I was hoping to prompt the user when he/she uses the template to enter some of the document properties and then to use these in the Header & Footer.

I have seen that I could use a built in Macro that uses the following code.

Function getProperty(propID As Integer)
getProperty = ActiveWorkbook.BuiltinDocumentProperties.Item(propID).Value
End Function

to return one of the preset properties, but this would entail me saving as a Macro Enabled workbook, which is not what is wanted.

I see that I can enter tags into the header and footer such as &[Path] or &[File] that return certain values, but can't seem to find a tag I could use to populate the TITLE or SUBJECT from the document properties.

Any thoughts would be appreciated.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
There is no way you can do this without using code as far as I know.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top