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 / March 2005

Tip: Looking for answers? Try searching our database.

Set FileSave dialog to be 'cancel'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gina - 10 Mar 2005 13:52 GMT
Hi.

me again
how can I tell word when I quit the word.application object to not come up
with a
dialog

wrd.quit SaveChanges:= cancel ?

somehow wrong

Gina
Martin Seelhofer - 10 Mar 2005 14:00 GMT
Hey Gina

> wrd.quit SaveChanges:= cancel ?
>
> somehow wrong

You're almost there, just use the boolean value false
instead of cancel:

wrd.quit SaveChanges := false

Cheers,
Martin
Gina - 10 Mar 2005 14:04 GMT
Hallo Martin.
But then the doc and word will close .... both should stay open just the
user shouldn't be prompted at all.

if I close it (on the upper left X)  I get a dialog similar to the one I get
when using
wrd.quit (no arguments here)

Is there a way to accomplish that ??? not being prompted

Cheers,
Gina

> Hey Gina
>
[quoted text clipped - 9 lines]
> Cheers,
> Martin
Jean-Guy Marcil - 10 Mar 2005 14:39 GMT
Gina was telling us:
Gina nous racontait que :

> Hallo Martin.
> But then the doc and word will close .... both should stay open just
[quoted text clipped - 5 lines]
>
> Is there a way to accomplish that ??? not being prompted

Gina, here is your first question:
<quote>
how can I tell word when I quit the word.application object to not come up
with a
dialog
<unquote>

Martin gave you the answer:
<quote>
wrd.quit SaveChanges := false
<unquote>

And now you write back to say that the document should stay open, but you
want the user not to see a prompt that appears only when you close a
document. If you do not want to close it, then don't and the user will never
see the prompt..

I think I am missing something here!

Signature

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

Gina - 10 Mar 2005 16:42 GMT
Sorry... if I am confusing

I had problems before to get rid of the word object.

then with help of the news user group and quite a few people envolved that I
have to application.quit
which I did ... so finally I got rid of the line between access and word and
a new document could be created without any error (as there was still
binding between both applications)

now I found out I do not have to quit necessarily just set word.application
= nothing

and now I do not get a prompt
and I can imagine that my questions were confusing

thanks, everything solved now
Gina

> Gina was telling us:
> Gina nous racontait que :
[quoted text clipped - 27 lines]
>
> I think I am missing something here!
Jonathan West - 10 Mar 2005 14:27 GMT
Its not clear what you want.

Do you want to break the link between your application and Word, but wothout
closing Word? If so, do "Set wrd = Nothing" without first using "wrd.Quit"

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org

> Hi.
>
[quoted text clipped - 8 lines]
>
> Gina
Gina - 10 Mar 2005 14:38 GMT
Hi Jonathan.

> Do you want to break the link between your application and Word, but wothout
> closing Word? If so, do "Set wrd = Nothing" without first using "wrd.Quit"

Thanks ..... yes ... that works perfect .... thought I had to break the link
between word and my tool via wrd.Quit.
all still works well without the quit!!! super!!

Gina
> Its not clear what you want.
>
[quoted text clipped - 13 lines]
> >
> > Gina

Rate this thread:






 
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.