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 / December 2004

Tip: Looking for answers? Try searching our database.

wdSaveChanges doesn't work

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bill_campbell@bcbsmt.com - 06 Dec 2004 23:44 GMT
I am using ActiveDocument.Close SaveChanges:=wdSaveChanges

But I still get a prompt asking me to save changes.  Any help would be
nice.
Jean-Guy Marcil - 07 Dec 2004 00:10 GMT
bill_campbell@bcbsmt.com was telling us:
bill_campbell@bcbsmt.com nous racontait que :

> I am using ActiveDocument.Close SaveChanges:=wdSaveChanges
>
> But I still get a prompt asking me to save changes.  Any help would be
> nice.

You probably have code elsehwere that interfers by doing stuff after the
   ActiveDocument.Close SaveChanges:=wdSaveChanges
line.

Any other code after? Any other event macros? Is it asking to save the
document or the template?

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

bill_campbell@bcbsmt.com - 07 Dec 2004 02:51 GMT
I can't beleive I didn't think of that first.  The file I open, then
close, was built from a template with a bunch of code inside.  I open
the file, then save it as text.  I'll look for a way to stop that macro
from running.

> You probably have code elsehwere that interfers by doing stuff after the
>     ActiveDocument.Close SaveChanges:=wdSaveChanges
[quoted text clipped - 9 lines]
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site: http://www.word.mvps.org
 
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.