ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Show file properties when file opened (https://www.excelbanter.com/excel-programming/444095-show-file-properties-when-file-opened.html)

SteveG[_4_]

Show file properties when file opened
 
Is there a way of automatically showing the file properties when the
file is opened?

I want to avoid users having to go through the menu.

XLS '07 & XP

Many thanks

Steve

Don Guillett Excel MVP

Show file properties when file opened
 
On Jan 7, 6:11*am, SteveG wrote:
Is there a way of automatically showing the file properties when the
file is opened?

I want to avoid users having to go through the menu.

XLS '07 & XP

Many thanks

Steve


Assign this to the WorkbookOpen event in the ThisWorkbook module
Sub showprop()
With ActiveWorkbook
MsgBox .BuiltinDocumentProperties("Author")
MsgBox .BuiltinDocumentProperties("Company")
MsgBox .BuiltinDocumentProperties("keywords")
End With
End Sub

Gord Dibben[_2_]

Show file properties when file opened
 
Which properties do you want to see......summary, custom??

See Don's reply if you just want certain builtin properties.

Elsewise............to show the dialogbox

Private Sub Workbook_Open()
Application.Dialogs(xlDialogProperties).Show
End Sub

Or you may want just custom properties. Not clear from your description.


Gord Dibben MS Excel MVP

On Fri, 7 Jan 2011 04:11:44 -0800 (PST), SteveG wrote:

Is there a way of automatically showing the file properties when the
file is opened?

I want to avoid users having to go through the menu.

XLS '07 & XP

Many thanks

Steve


GS[_2_]

Show file properties when file opened
 
SteveG brought next idea :
Is there a way of automatically showing the file properties when the
file is opened?

I want to avoid users having to go through the menu.

XLS '07 & XP

Many thanks

Steve


Do you mean file properties OR DocumentProperties for the file?

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc



SteveG[_4_]

Show file properties when file opened
 

Do you mean file properties OR DocumentProperties for the file?


DocumentProperties. The equivalent manual operation is Office button
Prepare Properties. Ideally I would like to put this in a template
file so that all documents that are created from this source behave in
the same way.

Steve


SteveG[_4_]

Show file properties when file opened
 
.... but it is likely that custom properties will get added over time.


GS[_2_]

Show file properties when file opened
 
SteveG explained on 1/11/2011 :
Do you mean file properties OR DocumentProperties for the file?


DocumentProperties. The equivalent manual operation is Office button
Prepare Properties. Ideally I would like to put this in a template
file so that all documents that are created from this source behave in
the same way.

Steve


What shows here is the file properties as found on the Summary tab of
the Properties dialog when you right-click the file in WE. To toggle
this on/off use:

CommandBars.ExecuteMso "FileProperties"

You want to note that as of the release of Vista, Windows no longer
supports these properties.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc



GS[_2_]

Show file properties when file opened
 
GS submitted this idea :
You want to note that as of the release of Vista, Windows no longer supports
these properties.


I meant 'FileProperties' here. What Excel is doing is populating
DocumentProperties using the FileProperties format. Somewhat confused?
The window that displays provides fields where you can enter these
values as 'DocumentProperties', thus the window's title. These will
appear on the 'Details' tab of the properties dialog. Note that the
'Keywords' field appears in the 'Tag' field in the properties list.

In Excel v11 and earlier, invoking the properties dialog displayed the
same as what you get when you right-click and select 'Properties' in
Windows Explorer. Not the case in later versions. Seems someone on the
Excel dev team got lazy when they configured this feature!

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc




All times are GMT +1. The time now is 04:38 PM.

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