Macro help please! How do I open a word doc, save as .txt and exit from an excel macro?

psabin8951

New Member
Joined
Apr 1, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi All,
I have a requirement to take a filled in word form (form.dot) on a shared drive and save it as a .txt file with the same name and location (form.txt) from within an excel spreadsheet macro which resides in the same shared folder (W:\Departments\ICT_Support\Helpdesk\). How do i do this?
To give some background, the form is from an external source and cannot be changed or have a word macro embedded in it hence the need to drive this via excel.
Anyway the .txt eventually gets imported and configured to import to the next empty row in the spreadsheet. i've got the code for that bit working fine, it just the Word dot to txt conversion i cant grasp.
Any help would be appreciated.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Cross posted Open a word doc, save as a text file, return to excel

While we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,215,731
Messages
6,126,537
Members
449,316
Latest member
sravya

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top