ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How can I include file properties in an excel spreadsheet (https://www.excelbanter.com/excel-discussion-misc-queries/156230-how-can-i-include-file-properties-excel-spreadsheet.html)

Graham Bartlett

How can I include file properties in an excel spreadsheet
 
I frequently save file properties such as the title, author, company name etc
and wanted to be able to use these values in excel without having to retype
them in the spreadsheet.

I can do this in word using the insert field function in Microsoft word, do
you know if there is anything similar in excel?

Gary''s Student

How can I include file properties in an excel spreadsheet
 
You can create tiny functions (UDFs) to get you the information. For example:

Function author()
author = ActiveWorkbook.BuiltinDocumentProperties(3)
End Function

So in a worksheet

=author()

will display the author's name.
--
Gary''s Student - gsnu200740


"Graham Bartlett" wrote:

I frequently save file properties such as the title, author, company name etc
and wanted to be able to use these values in excel without having to retype
them in the spreadsheet.

I can do this in word using the insert field function in Microsoft word, do
you know if there is anything similar in excel?



All times are GMT +1. The time now is 09:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com