Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Printing Workbook Properties.
by Allen Wyatt
(last updated June 20, 2018)
When you are putting together a workbook, Excel tracks quite a bit of information that it collectively refers to as workbook properties. You can view the different properties maintained by displaying the Properties dialog box.
In Word you have the option to print document properties, if you desire. There is no intrinsic way to print workbook properties in Excel. Instead, you must resort to a macro that will place the names and values of the properties into a worksheet. You can then print the worksheet and have your workbook properties available in hardcopy format.
The following macro is an example of a good way to copy all the workbook properties to a worksheet that can be printed:
Public Sub WorksheetProperties() Dim p As DocumentProperty Dim iRow As Integer 'Built in Properties iRow = 1 Cells(iRow, 1).Value = "Built-in Properties" Cells(iRow, 1).Font.Bold = True iRow = iRow + 1 Worksheets(1).Activate For Each p In ActiveWorkbook.BuiltinDocumentProperties On Error Resume Next Cells(iRow, 2).Value = p.Name 'If no value then Excel causes an error so ignore! Cells(iRow, 3).Value = p.Value iRow = iRow + 1 Next On Error GoTo 0 'Custom Properties iRow = iRow + 1 Cells(iRow, 1).Value = "Custom Properties" Cells(iRow, 1).Font.Bold = True iRow = iRow + 1 For Each p In ActiveWorkbook.CustomDocumentProperties On Error Resume Next Cells(iRow, 2).Value = p.Name Cells(iRow, 3).Value = p.Value iRow = iRow + 1 Next On Error GoTo 0 End Sub
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9149) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Printing Workbook Properties.
Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!
Tired of your workbooks being left open on the screen where they can be seen by anyone passing by? Here's a way to have ...Discover More
What are you to do is you share a workbook with others, and then suddenly the workbook won't open properly? Dealing with ...Discover More
When you starting linking information from one workbook to another, those workbooks become dependent on each other. ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.