File Open Dialog

J

Jan Kronsell

I would like to add my own code before showiing the FileOpen dialog. That is
whenever a user uses Files - Open, the Open tool or the Open shortcut, i
like to change the directory before the dialog is shown. I know how to
change the directory :) but what am i to call the su sub i make to
"overrule" the standard file open.

Jan
 
D

Doug Robbins - Word MVP

Hi Jan,

So near, but yet so far. Call the sub FileOpen which is the name of the
Word command. When you give a macro the same name as one of Word's
commands, the macro will run in place of that command.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
J

Jonathan West

Hi Jan,

Create a macro called FileOpen. This will then get called in preference to
the built-in command of the same name. Put into the macro the necessary code
to set the default directory.

--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top