Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unable to save word through VB script 1

Status
Not open for further replies.

laks143

Programmer
Apr 20, 2009
20
GB
Hi

i opened a word document through VB script and was unable to save it.i tried with following line of code

Word.documents.saveas "C:\Documents and Settings\1055214\Desktop\myfile1.doc",True

i am getting message as 'Word.documents.saveas method /property is not supported..

can any one helpme in this...

thanks in advance!!!!


 
Provided that Word is an Word.Application object:
Word.ActiveDocument.SaveAs "C:\Documents and Settings\1055214\Desktop\myfile1.doc"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
i am just beginner in VBscript.i dont know much about methods , libraries .. Thanks a lot for helping me PHV(MIS)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top