Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default 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
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 621
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default 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


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default 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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Show file properties when file opened

.... but it is likely that custom properties will get added over time.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default 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


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Image When File Opened bony_tony Excel Programming 2 April 18th 08 05:41 PM
Show Image When File Opened bony_tony Excel Programming 1 April 18th 08 03:55 PM
Userform won't show when file re-opened Gerry O Excel Discussion (Misc queries) 2 September 4th 07 05:42 PM
code to check file size everytime an Excel file is opened Kaiser[_2_] Excel Programming 2 July 30th 06 05:46 PM
How do I show some of the file properties in a cell in a work she. Mike on the learning curve! Excel Worksheet Functions 2 December 30th 04 11:14 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"