Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Word 2003 does not have a Save Word files as "Text Only with Line Breaks"
How can I accomplish what we were doing in Word 2000 within Word 2003. We are
using macros to save our documents. The macro does a number of things for us including using our default save choice in Tools/Options/Save Save Word files as: Text Only with Line Breaks (*.txt). Word 2003 only has "Text Only (*.txt) " which does not put in line breaks. The files are for use in an external data base program and without the line breaks it reads the file as a single line unless we press enter at the end of each line, which is not very conducive to typing fast. Thanks in advance for any assistance that you can provide. Jim |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Word 2003 does not have a Save Word files as "Text Only with Line Breaks"
JRWitte wrote:
How can I accomplish what we were doing in Word 2000 within Word 2003. We are using macros to save our documents. The macro does a number of things for us including using our default save choice in Tools/Options/Save Save Word files as: Text Only with Line Breaks (*.txt). Word 2003 only has "Text Only (*.txt) " which does not put in line breaks. The files are for use in an external data base program and without the line breaks it reads the file as a single line unless we press enter at the end of each line, which is not very conducive to typing fast. Thanks in advance for any assistance that you can provide. Jim Well, that's the problem with not poking around in the VBA help -- you don't learn about all the neat things VBA can do. ;-) Your macro presumably has a SaveAs command. One of the optional parameters of that command is InsertLineBreaks. That parameter's default, the value it gets if you omit it from the command, is False. Include the parameter with a True value, something like this: ActiveDocument.SaveAs FileName:="C:\temp\lines.txt", FileFormat:=wdFormatDOSText, InsertLineBreaks:=True (That should all be one line, but the posting software will probably break it into two.) -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Word 2003 does not have a Save Word files as "Text Only with Line Breaks"
Jay Freedman wrote:
How can I accomplish what we were doing in Word 2000 within Word 2003. We are using macros to save our documents. The macro does a [quoted text clipped - 9 lines] Jim Well, that's the problem with not poking around in the VBA help -- you don't learn about all the neat things VBA can do. ;-) Your macro presumably has a SaveAs command. One of the optional parameters of that command is InsertLineBreaks. That parameter's default, the value it gets if you omit it from the command, is False. Include the parameter with a True value, something like this: ActiveDocument.SaveAs FileName:="C:\temp\lines.txt", FileFormat:=wdFormatDOSText, InsertLineBreaks:=True (That should all be one line, but the posting software will probably break it into two.) Jay, Thank you very much for your Prompt & Accurate response to my post. It worked perfectly, just as you had indicated. You saved me a LOT of grief and aggravation. Thanks!!!!! Jim -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...ement/200810/1 |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How change from "read only" so I can save Word files normally? | Microsoft Word Help | |||
Opening files with "last modified" or "text or property" options | Microsoft Word Help | |||
Word shows "save" and "save" in drop down menu- no "save as" | Microsoft Word Help | |||
files I want to "save as" are all showing "file permission error" | Microsoft Word Help | |||
saving file as "text with line breaks". | New Users |