I am using ActiveDocument.Close SaveChanges:=wdSaveChanges

But I still get a prompt asking me to save changes. Any help would be
nice.

Re: wdSaveChanges doesn't work by Jean-Guy

Jean-Guy
Mon Dec 06 18:10:14 CST 2004

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?

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




Re: wdSaveChanges doesn't work by bill_campbell

bill_campbell
Mon Dec 06 20:51:58 CST 2004

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
> line.
>
>
> Any other code after? Any other event macros? Is it asking to save
the
> document or the template?
>
> --
> Salut!
> _______________________________________
> Jean-Guy Marcil - Word MVP
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site: http://www.word.mvps.org