Set FileSave dialog to be 'cancel'

G

Gina

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
 
M

Martin Seelhofer

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
 
G

Gina

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
 
J

Jonathan West

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"

--
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
 
G

Gina

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
 
J

Jean-Guy Marcil

Gina was telling us:
Gina nous racontait que :
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

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!

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
G

Gina

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top