Whoisit

I am opening a word document as follows

Case "doc"

objWord = CreateObject("Word.Application")

objDoc = objWord.Documents.Open(OFD1.FileName)

objDoc.Select()

rtbText.Text = objWord.Selection.Text

objDoc.Close()

objWord.Quit()

My question is, how after the document has been changed, can I save it as a word document keeping all its formating



Re: Visual Studio Tools for Office Save a word document

Cindy Meister

objDoc.Save()

It's also possible to specify saving as an argument of the Close and Quit methods - read the object model help.

Since your questions have nothing to do with the VSTO technology - the topic of this forum - but are aimed at general Word automation, please ask new and follow-up questions in the office.developer.automation newsgroup.