WordBasic Error 52 Running BatchConversion Macro |
Q155146
After you click Next in the first screen in the BatchConversion Wizard, you may receive a WordBasic Error #52, "Bad file name or number."
WARNING: ANY USE BY YOU OF THE OR MACRO CODE PROVIDED IN THIS ARTICLE IS AT
YOUR OWN RISK. Microsoft provides this macro code "as is" without warranty
of any kind, either express or implied, including but not limited to the
implied warranties of merchantability and/or fitness for a particular
purpose.
To resolve this problem, use the following steps:
x$ = GetPrivateProfileString$("MSWord Text Converters", CnvToUse$, ini$)
to match the following code:
x$ = GetPrivateProfileString$("MSWord Text Converters", CnvToUse$, "WINWORD6.INI")
This problem may occur because the "windir" environment variable is a root
directory, for example, "H:\."
By modifing the line in the macro to resemble the following
ini$ = windir$ + "\winword6.ini"
you sets the variable "ini$" to equal the path to the Windows directory
and the Winword6.ini file. This workaround corrects the problem if Windows
is not installed or mapped to a root directory (for example
windir=c:\windows) when "\winword6.ini" is added to the windir variable
(for example ini$=c:\windows\winword6.ini).
Additional query words: 6.0
Keywords : kbofficeprog
Issue type :
Technology :
|
Last Reviewed: March 28, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |