PDA

View Full Version : function call in Visual Basic Script (All)



slator
06-01-2004, 07:42 AM
hi i've got a problem with a ******* vbscript.

that script opens all word files which are stored in one directory.
after opening they should be converted and restored in another directory.

initialising and opening the files works correct but then i call the "SaveAs" function...

i don't know how the syntax should exactly look and that's my problem.
so i got always an error... i just don't know how i can call that "SaveAs" function in a vbscript. means i don't know how i can call that function with more then just one argument.

my code looks like this:
wordApp.ActiveDocument.SaveAs "FileName="+newFileName+","wdFormatHTML"

is there someone who can help me??