Discussion:
How to have all functions of the wdDialogFileOpen
(too old to reply)
aks
2005-04-15 18:27:00 UTC
Permalink
I am using Dialogs(wdDialogFileOpen).Show. It seems to function only
for opening a single file. Is there a way to get it to function on
multiple files for a file open operation and any right click operation
such as Print? I am using it as a plain
Dialogs(wdDialogFileOpen).Show.

Thanks,
AKS
Jezebel
2005-04-16 03:52:51 UTC
Permalink
Wrong dialog for your purpose.

Create a UserForm and add a CommonDialog control to it. When you call the
dialog, make sure the Flag setting includes 'AllowMultiSelect'. You don't
need to display the form to call the dialog.
Post by aks
I am using Dialogs(wdDialogFileOpen).Show. It seems to function only
for opening a single file. Is there a way to get it to function on
multiple files for a file open operation and any right click operation
such as Print? I am using it as a plain
Dialogs(wdDialogFileOpen).Show.
Thanks,
AKS
aks
2005-04-18 14:30:59 UTC
Permalink
I am confused. Is not CommonDialog control a VB6 device? I'm using
Word VBA. There is a condition in my application where the application
is to end with the user looking at the standard Word file open dialog.
It would be nice if the dialog was fully functional. I'm also trying
to avoid coding what appears to already exist.

On Sat, 16 Apr 2005 13:22:51 +0930, "Jezebel"
Post by Jezebel
Wrong dialog for your purpose.
Create a UserForm and add a CommonDialog control to it. When you call the
dialog, make sure the Flag setting includes 'AllowMultiSelect'. You don't
need to display the form to call the dialog.
Post by aks
I am using Dialogs(wdDialogFileOpen).Show. It seems to function only
for opening a single file. Is there a way to get it to function on
multiple files for a file open operation and any right click operation
such as Print? I am using it as a plain
Dialogs(wdDialogFileOpen).Show.
Thanks,
AKS
Jezebel
2005-04-20 10:57:17 UTC
Permalink
VB6 and VBA are much the same for most purposes. You can add the
CommonDialog control to a Userform in VBA just as you would in VB. Hell of a
lot easier than trying to get the Word FileOpen dialog to do things it's not
designed for.
Post by aks
I am confused. Is not CommonDialog control a VB6 device? I'm using
Word VBA. There is a condition in my application where the application
is to end with the user looking at the standard Word file open dialog.
It would be nice if the dialog was fully functional. I'm also trying
to avoid coding what appears to already exist.
On Sat, 16 Apr 2005 13:22:51 +0930, "Jezebel"
Post by Jezebel
Wrong dialog for your purpose.
Create a UserForm and add a CommonDialog control to it. When you call the
dialog, make sure the Flag setting includes 'AllowMultiSelect'. You don't
need to display the form to call the dialog.
Post by aks
I am using Dialogs(wdDialogFileOpen).Show. It seems to function only
for opening a single file. Is there a way to get it to function on
multiple files for a file open operation and any right click operation
such as Print? I am using it as a plain
Dialogs(wdDialogFileOpen).Show.
Thanks,
AKS
Cindy M -WordMVP-
2005-04-19 16:12:50 UTC
Permalink
Hi Aks,
Post by aks
I am using Dialogs(wdDialogFileOpen).Show. It seems to function only
for opening a single file. Is there a way to get it to function on
multiple files for a file open operation and any right click operation
such as Print? I am using it as a plain
Dialogs(wdDialogFileOpen).Show.
Which version of Word do you have to support?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)
aks
2005-04-19 23:23:35 UTC
Permalink
Hi,

It is Word 2000.

I tried using "CommandBars.FindControl(ID:=23,
Visible:=False).Execute " as explained at
"http://word.mvps.org/FAQs/MacrosVBA/OpenMultipleFiles.htm" but my
application is actually a replacement for File Open. "
"CommandBars.FindControl(ID:=23, Visible:=False).Execute" seems to
execute a File Open command which in turn reruns my application.

Thanks,
Aks



On Tue, 19 Apr 2005 18:12:50 +0200, Cindy M -WordMVP-
Post by Cindy M -WordMVP-
Hi Aks,
Post by aks
I am using Dialogs(wdDialogFileOpen).Show. It seems to function only
for opening a single file. Is there a way to get it to function on
multiple files for a file open operation and any right click operation
such as Print? I am using it as a plain
Dialogs(wdDialogFileOpen).Show.
Which version of Word do you have to support?
Cindy M -WordMVP-
2005-04-21 13:34:09 UTC
Permalink
Hi Aks,
Post by aks
It is Word 2000.
If it were 2002 or 2003 there'd be the new FileDialog
object you could use. For Word 2000, work with Jezebel's
idea.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)
aks
2005-04-22 13:33:58 UTC
Permalink
Thanks Cindy and Jezebel. I've already sidestepped the biggest issue
with the Word dialog shortcomming. When looking into this Common
Dialog Control thing to see what possibilities it affords, I find I
cannot use it because, "The control could not be created because it is
not properly licensed.", whereupon the Help generates a totally blank
help screen. Further digging indicates I cannot use it with plain Word
VBA.


On Thu, 21 Apr 2005 15:34:09 +0200, Cindy M -WordMVP-
Post by Cindy M -WordMVP-
Hi Aks,
Post by aks
It is Word 2000.
If it were 2002 or 2003 there'd be the new FileDialog
object you could use. For Word 2000, work with Jezebel's
idea.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)
Jezebel
2005-04-22 23:06:47 UTC
Permalink
That license message is an installation problem. You CAN use CommonDialog
with Word 2000 VBA ... I do it all the time.
Post by aks
Thanks Cindy and Jezebel. I've already sidestepped the biggest issue
with the Word dialog shortcomming. When looking into this Common
Dialog Control thing to see what possibilities it affords, I find I
cannot use it because, "The control could not be created because it is
not properly licensed.", whereupon the Help generates a totally blank
help screen. Further digging indicates I cannot use it with plain Word
VBA.
On Thu, 21 Apr 2005 15:34:09 +0200, Cindy M -WordMVP-
Post by Cindy M -WordMVP-
Hi Aks,
Post by aks
It is Word 2000.
If it were 2002 or 2003 there'd be the new FileDialog
object you could use. For Word 2000, work with Jezebel's
idea.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)
aks
2005-04-25 13:58:34 UTC
Permalink
Unfortunately that puts it out of my control, however I suspect you
might have other software installed that licensed that componant.
Post by Jezebel
That license message is an installation problem. You CAN use CommonDialog
with Word 2000 VBA ... I do it all the time.
Loading...