Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2005

Tip: Looking for answers? Try searching our database.

Document doesn't save the paragraphs inserted with range object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vibs - 23 Nov 2005 16:43 GMT
I am adding couple of paragraphs after a page break at the  end of the
document using range object, the document is rendered fine, however saving
the document
with  either of these options doesn't save the new paragraphs
Me.m_objDoc.Save()
               'Me.Application.Documents.Save(NoPrompt:=True)
               'Me.Application.Documents(Me.m_objDoc.Name).Save()    

If I manually enter something in the document and manually press save
button, then the document is saved correctly. I have put in a lot of time on
this and can't figure out what I am missing. Please help..

Thanks
Vibs
Doug Robbins - Word MVP - 24 Nov 2005 18:42 GMT
ActiveDocument.Save

From the help file

This example saves open documents that have changed since they were last
saved.

Dim docLoop As Document

For Each docLoop In Documents
  If docLoop.Saved = False Then docLoop.Save
Next docLoop
It maybe that you have to save them one by one.  At least, I would only ever
be issuing a .Save command in respect of theone document with which I was
working at the time.
Signature

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

>I am adding couple of paragraphs after a page break at the  end of the
> document using range object, the document is rendered fine, however saving
[quoted text clipped - 11 lines]
> Thanks
> Vibs
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.