Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel document propeties in Cells
Is there any way of showing Excel document properties in cells?
For example, I´d like to show the Title property in a cell. Thanks. Carlos. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel document propeties in Cells
Hi
Maybe UDF like this will do: Public Function ShowPropertie(strProp As String) Select Case strProp Case "Author" WBProp = ThisWorkbook.Author Case "FileFormat" WBProp = ThisWorkbook.FileFormat Case "FullName" WBProp = ThisWorkbook.FullName Case "Name" WBProp = ThisWorkbook.Name Case "Path" WBProp = ThisWorkbook.Path Case "ReadOnly" WBProp = ThisWorkbook.ReadOnly Case "RevisionNumber" WBProp = ThisWorkbook.RevisionNumber Case "Title" WBProp = ThisWorkbook.Title Case "ActivePrinter" WBProp = Application.ActivePrinter Case "Calculation" WBProp = Application.Calculation Case "OrganizationName" WBProp = Application.OrganizationName Case "UserName" WBProp = Application.UserName End Select End Function Copy the UDF into your workbook module, and into any cell enter the formula like =WBPROP("UserName") -- Arvi Laanemets ( My real mail address: arvi.laanemets<attarkon.ee ) "e-csl" wrote in message ... Is there any way of showing Excel document properties in cells? For example, I´d like to show the Title property in a cell. Thanks. Carlos. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel document propeties in Cells
For a simple listing of the properties try following code. You find the
according numbers to any property in the HELP. Sub ReadWorkbookProperties() Cells(1, 1).Value = ActiveWorkbook.Name For i = 1 To 30 On Error Resume Next Cells(i + 1, 1).Value = ActiveWorkbook.BuiltinDocumentProperties(i) Next End Sub Regards reklamo "Arvi Laanemets" wrote: Hi Maybe UDF like this will do: Public Function ShowPropertie(strProp As String) Select Case strProp Case "Author" WBProp = ThisWorkbook.Author Case "FileFormat" WBProp = ThisWorkbook.FileFormat Case "FullName" WBProp = ThisWorkbook.FullName Case "Name" WBProp = ThisWorkbook.Name Case "Path" WBProp = ThisWorkbook.Path Case "ReadOnly" WBProp = ThisWorkbook.ReadOnly Case "RevisionNumber" WBProp = ThisWorkbook.RevisionNumber Case "Title" WBProp = ThisWorkbook.Title Case "ActivePrinter" WBProp = Application.ActivePrinter Case "Calculation" WBProp = Application.Calculation Case "OrganizationName" WBProp = Application.OrganizationName Case "UserName" WBProp = Application.UserName End Select End Function Copy the UDF into your workbook module, and into any cell enter the formula like =WBPROP("UserName") -- Arvi Laanemets ( My real mail address: arvi.laanemets<attarkon.ee ) "e-csl" wrote in message ... Is there any way of showing Excel document properties in cells? For example, I´d like to show the Title property in a cell. Thanks. Carlos. |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel document propeties in Cells
Thank you very much. I'll have a try.
Thanks. Carlos "Arvi Laanemets" wrote: Hi Maybe UDF like this will do: Public Function ShowPropertie(strProp As String) Select Case strProp Case "Author" WBProp = ThisWorkbook.Author Case "FileFormat" WBProp = ThisWorkbook.FileFormat Case "FullName" WBProp = ThisWorkbook.FullName Case "Name" WBProp = ThisWorkbook.Name Case "Path" WBProp = ThisWorkbook.Path Case "ReadOnly" WBProp = ThisWorkbook.ReadOnly Case "RevisionNumber" WBProp = ThisWorkbook.RevisionNumber Case "Title" WBProp = ThisWorkbook.Title Case "ActivePrinter" WBProp = Application.ActivePrinter Case "Calculation" WBProp = Application.Calculation Case "OrganizationName" WBProp = Application.OrganizationName Case "UserName" WBProp = Application.UserName End Select End Function Copy the UDF into your workbook module, and into any cell enter the formula like =WBPROP("UserName") -- Arvi Laanemets ( My real mail address: arvi.laanemets<attarkon.ee ) "e-csl" wrote in message ... Is there any way of showing Excel document properties in cells? For example, I´d like to show the Title property in a cell. Thanks. Carlos. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Scan from a document to excel with separate cells | Excel Discussion (Misc queries) | |||
linked cells in excel on a shared document | Excel Discussion (Misc queries) | |||
convert excel document to word document (not a picture) | Excel Discussion (Misc queries) | |||
How to create a formatted 'readable' document based on Excel document? | Excel Discussion (Misc queries) | |||
is it possible for a excel document to copy cells to another excel | Excel Discussion (Misc queries) |