When I run the VBA code containing the command:
ActiveDocument.Convert
I receive an error message that states "Command is not available".
To troubleshoot the document, I step through the process. My routine
brings up the document, and then does the convert. When I step through
my code, I can look in the document and see the "Convert" command on
the Office Button menu. The next step I do, the convert command is
performed.
But, I go back to letting my routine loop through a directory, then
the routine crashes on ActiveDocument.Convert.
So, how can I get "ActiveDocument.convert" not to crash my routine?
Any ideas?
Thanks,
Rich
Graham Mayor - 23 Jan 2008 08:25 GMT
The command will fail if the document is already converted.

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> When I run the VBA code containing the command:
>
[quoted text clipped - 17 lines]
>
> Rich
rgmw - 23 Jan 2008 13:05 GMT
As I step through the subroutine, I can look into the document and see
that the "Convert" command is on the Office button menu and is
active.
> The command will fail if the document is already converted.
>
[quoted text clipped - 27 lines]
>
> > Rich