Activate File Properties Dialog upon Opening File

  • Thread starter Thread starter Andy
  • Start date Start date
A

Andy

Is there a way to open the file properties dialog box automatically
upon opening a powerpoint file? We are trying to setup a presentation
logging procedure to allow for searching within the metadata for
specific information. It would be nice to Murphy-proof our procedure
with this dialog opening automatically. Any suggestions?
 
Is there a way to open the file properties dialog box automatically
upon opening a powerpoint file? We are trying to setup a presentation
logging procedure to allow for searching within the metadata for
specific information. It would be nice to Murphy-proof our procedure
with this dialog opening automatically. Any suggestions?

In PPT2000 or higher, this will help:

Make PPT respond to events
http://www.rdpslides.com/pptfaq/FAQ00004.htm

Opening a presentation could trigger an event that you can respond to.

If you really want to give Murphy a hard way to go, I'd respond by opening my
own dialog box instead of the Properties one. That'd give you control over
what the user has to fill in and whether they can give bogus answers or bypass
it entirely.

Once you have the values you need, you can set the built-in and custom
properties in code.

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Thanks for the link to that add-in. I knew about the auto open
function but I did not know it was tied to that particular add-in.

I had developed a macro that would open the properties box using
shortcuts to the menus (ie. ALT-f and then i for properties), would
you have any references to building a custom dialog to store data in
the meta data fields or just a reference of how to launch the
properties dialog using code. I have searched extensively and found
nothing.

Thanks again.
 
Andy,
You can use the following to launch the Properties dialog:
' -------------------------------------
If Windows.Count >0 then CommandBars.FindControl(ID:=750).Execute
' -------------------------------------
 
Thanks for the link to that add-in. I knew about the auto open
function but I did not know it was tied to that particular add-in.

I had developed a macro that would open the properties box using
shortcuts to the menus (ie. ALT-f and then i for properties), would
you have any references to building a custom dialog to store data in
the meta data fields or just a reference of how to launch the
properties dialog using code. I have searched extensively and found
nothing.

It's worth searching the FAQ! <g>

Get the Document Properties of a PPT file
http://www.rdpslides.com/pptfaq/FAQ00554.htm

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Shyam,

Thanks for you post. I tried the command and it works once then it
doesn't work again. When I reload your Auto_event.ppa it sometimes
works again. I am not sure but I may not be setting it up right.

This is what I have:

Auto_Event.ppa is loaded on powerpoint.

Macro is included in file with the following code (really simple)

Private Sub Auto_open()
If Windows.Count > 0 Then CommandBars.FindControl(Id:=750).Execute
End Sub

Would you have any recommendations how to include the commandbar
command in an add-in that will load everytime?

Thanks.
 
This is what I have:
Auto_Event.ppa is loaded on powerpoint.

Macro is included in file with the following code (really simple)

Private Sub Auto_open()
If Windows.Count > 0 Then CommandBars.FindControl(Id:=750).Execute
End Sub

Auto_Open runs only once, when the addin is loaded. That's why you only see
the properties dialog launch once. You don't want to invoke the properties
dialog from Auto_Open, you want it to fire off when somebody opens a file,
right?

IIRC, AutoEvent won't do anything on its own. You have to write procedures to
respond to events.

So you need to put the code to launch the dialog into a procedure that
AutoEvents call at the point where the user opens a file.

Would you have any recommendations how to include the commandbar
command in an add-in that will load everytime?

Thanks.

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Back
Top