Prompting for File Properties loses document focus

J

Jeremy W

Does anyone have any suggestions why my template loses focus from the
document when a macros I've written opens the File Properties dialog
box. T

The macro is:

Sub Document_New()
On Error Resume Next
Application.Run "FileProperties"
End Sub

Basically, when you create a new document from the template, the file
properties dialog box opens. If you then close it, then focus goes to
any other program except the new document (or so it seems). It doesn't
seem very impressive, especially as I want all work group templates to
auto prompt for properties in this way.

Many thanks for your interest and help.

Jeremy
 
G

Graham Mayor

You would do better with a vba question in a vba newsgroup.
You can force the doc properties box on save from tools > options > save >
prompt for document properties.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 

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