Save As: Save as Type

C

Cindy

I am working with:

With Dialogs(wdDialogFileSaveAs)
.Name = myDocPath & NameToDocumentName(ActiveDocument.Name)
.Show
End With

The active document is an rtf file that needs to be saved as a doc file. I
have stripped the "rtf" extension from the file name (NametoDocumentName) but
the Save As Type still remains as *.rtf.

I need to instruct the SaveAs Dialog to set the Save As Type as *.doc. How
can I add that instruction to "With Dialogs(wdDialogFileSaveAs)"?
 
J

Jezebel

With Dialogs(wdDialogFileSaveAs)
.Format = wdFormatRTF
:

But if you already know the filename and format, why show the dialog at
all? --

ActiveDocument.SaveAs FileName:=myDocPath &
NameToDocumentName(ActiveDocument.Name), _
FileFormat:=wdFormatRTF
 
C

Cindy

The document path is the root of the client's file directory. The Save As
dialog must be displayed so the users can selected their desired subdirectory.
 
C

Cindy

BTW, that suggestion didn't work. The format must be changed from RTF to DOC
in the Save As dialog: Save As Type.

Any other ideas?
 
J

Jezebel

I thought you wanted to save as RTF?



Cindy said:
BTW, that suggestion didn't work. The format must be changed from RTF to DOC
in the Save As dialog: Save As Type.

Any other ideas?
 
C

Cindy

No. This is the scenario:

The RTF document is an named assembled output document directed to a
temporary directory. The named output document is as a result of Document
Assembly from a software package into Word.

The RTF document must then be directed to the root of the client's file
directory (myDocPath) without the RTF extension (NametoDocumentName) and
prepared to be saved in document (*.doc) format.

I have the code to strip the extension from the filename but because the
format of the document is still RTF, the Save As Type option is still set to
RTF. I need to instruct the Save As dialog to change the Save As Type from
RTF to DOC so that when the user clicks SAVE, the filename and format are
already set. The only work on the user's part would be to select the desired
sub-directory within their File Directory.
 
J

Jezebel

..Format = wdFormatDocument


Cindy said:
No. This is the scenario:

The RTF document is an named assembled output document directed to a
temporary directory. The named output document is as a result of Document
Assembly from a software package into Word.

The RTF document must then be directed to the root of the client's file
directory (myDocPath) without the RTF extension (NametoDocumentName) and
prepared to be saved in document (*.doc) format.

I have the code to strip the extension from the filename but because the
format of the document is still RTF, the Save As Type option is still set to
RTF. I need to instruct the Save As dialog to change the Save As Type from
RTF to DOC so that when the user clicks SAVE, the filename and format are
already set. The only work on the user's part would be to select the desired
sub-directory within their File Directory.
 
C

Cindy

Hi Jezebel,

Unfortunately, this was already tried initially. It does not force the
dialog to change its type to *.doc as one would expect.

My work-around has been to copy the file into another window and save it as
*.doc format.

Thanks for your input.
Cindy
 

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