Dialogs(wdDialogFileOpen) --> can't multi-select

R

RJ Lohan

There is a knowledge base article;
http://support.microsoft.com/default.aspx?scid=kb;en-
us;146922

Which outlines an issue with VBA in Word where using
Dialogs(wdDialogFileOpen) caused runtime error when
selecting multiple files. However, this article only
refers to Word 97, and I'm sure this is still an issue in
Word 2000/XP/2003

Can anyone point me to a reference to this effect?

(I know I can use Application.FileDialog for XP/2003, but
as this isn't available in Word 2000, I need to find a
reference to this issue for customer explanation)
..
 
R

RJ Lohan

Ah, I've just discovered that that resolution probably won't do -> reason
being that I modify the action of the 'Open' button (and menu items). Which
is why I need to duplicate the open dialog in the first place...

Any other suggestions or KB links?
 
J

Jonathan West

RJ Lohan said:
Ah, I've just discovered that that resolution probably won't do -> reason
being that I modify the action of the 'Open' button (and menu items).
Which
is why I need to duplicate the open dialog in the first place...

Any other suggestions or KB links?


The following article has some VB code for using the Windows common dialog
for file open.

http://vbnet.mvps.org/code/comdlg/fileopendlg.htm

The code is in VB6 rather than VBA, and so you will need to adapt it a bit,
but the Windows common dialog does allow you to do multisepect.
 
R

RJ Lohan

That's probably a bit heavy for what I want - and adds a dependancy to
distribute doesn't it?

Anyway, bit of lateral thinking and I've resolved this one - I now add an
'Open' button to the toolbar and execute that one, which hasn't been hooked
by my other code. Then I delete it, and the user is none the wiser.

Thanks for the help.

Cheers,
Ryan
 
J

Jonathan West

RJ Lohan said:
That's probably a bit heavy for what I want - and adds a dependancy to
distribute doesn't it?

The coding it a bit inticate, but it adds no dependencies and nohing
dditional that you need distribute.

Anyway, bit of lateral thinking and I've resolved this one - I now add an
'Open' button to the toolbar and execute that one, which hasn't been
hooked
by my other code. Then I delete it, and the user is none the wiser.

Thanks for the help.

You're welcome!
 

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