.dot to .txt in Word 2003

P

Phil Stokes

In code used in Word 2000 the following line of code
ActiveDocument.SaveAs "filename", wdFormatDOSText
saved the open document in text format without any Query.

Now I'm running it in Word 2000 and it pops up a box querying whether I wand
to do this action. I am doing all of this in the background for various
reasons and I don't want the saver to be asked any questions.

Is there anything I can do to suppress this query?
 
J

Jean-Guy Marcil

Phil Stokes was telling us:
Phil Stokes nous racontait que :
In code used in Word 2000 the following line of code
ActiveDocument.SaveAs "filename", wdFormatDOSText
saved the open document in text format without any Query.

Now I'm running it in Word 2000 and it pops up a box querying whether
I wand to do this action. I am doing all of this in the background
for various reasons and I don't want the saver to be asked any
questions.

Is there anything I can do to suppress this query?

I just tested

Dim docSave As Document

Set docSave = Documents("TestDoc.doc")

docSave.SaveAs "filename", wdFormatDOSText

in Word 2003 and never got any dialog popping up.

Have you saved those documents in Word 2003 once before?


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

Phil Stokes

Yes. the document is saved as a .doc first. This is the original document.
The document is then closed. It is later opened and then saved as a .txt
document to a different path and when it arrives there, a script is run
taking out any extraneous text and using the remainder as input for a web
page.

I would prefer if I could do it exactly as it has been done up to now as I
will have to recreate the output as the script expects otherwise.

I have checked the options to see if there was any setting to avoid this
problem but I couldn't find any.

Phil
 
H

Howard Kaikow

Phil Stokes said:
In code used in Word 2000 the following line of code
ActiveDocument.SaveAs "filename", wdFormatDOSText
saved the open document in text format without any Query.

Now I'm running it in Word 2000 and it pops up a box querying whether I wand
to do this action. I am doing all of this in the background for various
reasons and I don't want the saver to be asked any questions.

Is there anything I can do to suppress this query?


What is the full text of the message asking whether you want to do this
action?
 
P

Phil Stokes

It is a pop up form stating that some of the formatting, pictures etc will be
lost if I save as a .txt file and I must click on a "Continue" button to
complete the action. there is a help button too that when clicked gives no
help unfortunately. There is also a cancel button. It is a different design
than the comperable message in Word 2000, 2002 but it is essentially the
same. It is a quite common occurrance when you manually "SaveAs" but until
now I could do a saveas in code and this box would not appear.

Phil
 
C

Cindy M.

Hi =?Utf-8?B?UGhpbCBTdG9rZXM=?=,
It is a pop up form stating that some of the formatting, pictures etc will be
lost if I save as a .txt file and I must click on a "Continue" button to
complete the action. there is a help button too that when clicked gives no
help unfortunately. There is also a cancel button. It is a different design
than the comperable message in Word 2000, 2002 but it is essentially the
same. It is a quite common occurrance when you manually "SaveAs" but until
now I could do a saveas in code and this box would not appear.
Does setting Application.DisplayAlerts have any effect?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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