Save As .txt

G

Guest

Hello,

I have code goes to the W drive and have filtered the different .DOC
documents.

Private Sub cmdOIDD_Click()

Dim dlgOpen As FileDialog

Set dlgOpen = Application.FileDialog(msoFileDialogFilePicker)

With dlgOpen
.InitialFileName = "W:\Monthly\????????.CENSUS-UH-NS-SUMMARY-IP.DOC"
.Show
.AllowMultiSelect = False


End With
End Sub

This allows me to select among the monthly .doc documents I want to use.
The situation is:

I want to select one by highlighting it.

The selected document is to be saved it to my C drive with the same filename
except the extension is to be .txt.

I appreciate your help.
 
D

Daiya Mitchell

You might get an answer here, but in general, requests for help writing code
for macros are better directed to a group that specializes in Word VBA, aka
Word Programming, for instance:

[you may need to re-wrap these URLs if they are not clickable]

http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.pu
blic.word.vba.general&lang=en&cr=US

If just beginning with macros, this group is for beginners:

http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=micros
oft.public.word.vba.beginners&lang=en&cr=US

There are many more people in those groups who have the ability to answer
your question, so you will probably get a better and faster answer there.
 
G

Guest

Daiya,

Thanks, I'll give it a try.
--
Kenny G


Daiya Mitchell said:
You might get an answer here, but in general, requests for help writing code
for macros are better directed to a group that specializes in Word VBA, aka
Word Programming, for instance:

[you may need to re-wrap these URLs if they are not clickable]

http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.pu
blic.word.vba.general&lang=en&cr=US

If just beginning with macros, this group is for beginners:

http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=micros
oft.public.word.vba.beginners&lang=en&cr=US

There are many more people in those groups who have the ability to answer
your question, so you will probably get a better and faster answer there.


Hello,

I have code goes to the W drive and have filtered the different .DOC
documents.

Private Sub cmdOIDD_Click()

Dim dlgOpen As FileDialog

Set dlgOpen = Application.FileDialog(msoFileDialogFilePicker)

With dlgOpen
.InitialFileName = "W:\Monthly\????????.CENSUS-UH-NS-SUMMARY-IP.DOC"
.Show
.AllowMultiSelect = False


End With
End Sub

This allows me to select among the monthly .doc documents I want to use.
The situation is:

I want to select one by highlighting it.

The selected document is to be saved it to my C drive with the same filename
except the extension is to be .txt.

I appreciate your help.

--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: <http://www.word.mvps.org/MacWordNew/>
What's an MVP? A volunteer! Read the FAQ:
 

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