word 2003 to word 2000

P

pscaperoth

I am new to the Visual Basic world. I created a VB code that is used
in Word 2003. My customer has decided to use Word 2000 instead. The
code below will not run with Word 2000. Any suggestions on what I
should change? I have been trying to find others with the same issue,
but have not been able to solve my exact issue yet.
Any help/suggestions would be greatly appreciated.
-Paige

Set wdApp = CreateObject("Word.application")
Set docNew = wdApp.Documents.Open(WScript.Arguments(0))
docNew.SaveAs WScript.Arguments(1), 2 , False, "", True, "", False,
False, False, False, False, False, True
docNew.Close
wdApp.Quit
 
D

Doug Robbins - Word MVP

You should name all of the parameters in

docNew.SaveAs WScript.Arguments(1), 2 , False, "", True, "", False,
False, False, False, False, False, True

Almost certainly some of them have changed.

By that I mean

docNew.SaveAs Filename: = WScript.Arguments(1),
Whateverthesecondparameteris: = 2 , Whateverthenextparameteris: = False,
etc.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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