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 / November 2006

Tip: Looking for answers? Try searching our database.

.dot to .txt in Word 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Phil Stokes - 23 Nov 2006 15:21 GMT
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?
Jean-Guy Marcil - 23 Nov 2006 16:24 GMT
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
[quoted text clipped - 6 lines]
>
> 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?

Signature

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

Phil Stokes - 23 Nov 2006 18:11 GMT
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

> Phil Stokes was telling us:
> Phil Stokes nous racontait que :
[quoted text clipped - 21 lines]
>
> Have you saved those documents in Word 2003 once before?
Howard Kaikow - 23 Nov 2006 20:01 GMT
> In code used in Word 2000 the following line of code
>     ActiveDocument.SaveAs "filename", wdFormatDOSText
[quoted text clipped - 5 lines]
>
> 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?
Phil Stokes - 24 Nov 2006 01:01 GMT
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

> > In code used in Word 2000 the following line of code
> >     ActiveDocument.SaveAs "filename", wdFormatDOSText
[quoted text clipped - 9 lines]
> What is the full text of the message asking whether you want to do this
> action?
Phil Stokes - 24 Nov 2006 01:06 GMT
Sorry I am now running 2003 (typo in original question)

> 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
[quoted text clipped - 19 lines]
> > What is the full text of the message asking whether you want to do this
> > action?
Cindy M. - 25 Nov 2006 11:44 GMT
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
[quoted text clipped - 3 lines]
> 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 :-)

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.