Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 10-22-2010, 12:23 PM
Kimberly Kimberly is offline Word Macro: Save file as text with current file name Windows 7 Word Macro: Save file as text with current file name Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Posts: 517
Kimberly is on a distinguished road
Default

How about

Code:
 
Sub saveastxt()
 ActiveDocument.SaveAs2 FileName:=Replace(ActiveDocument.Name, "docx", "txt")
 FileFormat = wdFormatText
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro will not save to normal.dot file when exiting bobbraun Word 1 09-28-2010 06:26 AM
Word Macro: Save file as text with current file name Save/Send to file Dawn1231a Outlook 1 08-05-2010 01:10 PM
linking a word file and an excell file on a macbook pro Fleur Office 0 07-14-2010 08:19 PM
Runtime error 5487 - Word cannot complete the save to to file permission error franferns Word 0 11-25-2009 05:35 AM
Word Macro: Save file as text with current file name File conversion Warning Box On Save ding dong Word 9 04-12-2009 05:46 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:24 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft