Is it possible to print the document properties in Excel?

  • Thread starter Thread starter pcastillo
  • Start date Start date
P

pcastillo

I have an excel workbook that is on a sharepoint site with custom document
properties. Can I print these properties when I print the workbook?
 
To get a list of all Custom Properties run the following macro.

Sub customprops()
rw = 1
Worksheets.Add
For Each p In ActiveWorkbook.CustomDocumentProperties
Cells(rw, 1).Value = p.Name
Cells(rw, 3).Value = p.Value
rw = rw + 1
Next
End Sub


Gord Dibben MS Excel MVP
 
Back
Top