Open file dialog box

J

Jesper, Denmark

Hi there,

I'm terrible new to vba - and I've received a VBA program from a friend that query the user for a filename. He uses the InputBox method, but I would like file browsing functionality. In excel I've found Application.GetOpenFileName but I cant make it function with word vba. The file to open is a text file. I'm using Word 2000. Is there a OpenFileDialog of some kind available for word 2000 vba?

best regards Jesper.
 
J

Jonathan West

Hi there,

I'm terrible new to vba - and I've received a VBA program from a friend
that query the user for a filename. He uses the InputBox method, but I would
like file browsing functionality. In excel I've found
Application.GetOpenFileName but I cant make it function with word vba. The
file to open is a text file. I'm using Word 2000. Is there a OpenFileDialog
of some kind available for word 2000 vba?
best regards Jesper.

Hi Jesper

Take a look at the second section in this article. It provides a code sample
for exactly what you want to do.

Useful WordBasic commands that have no VBA equivalent
http://word.mvps.org/FAQs/MacrosVBA/WordBasicCommands.htm
 

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