Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Well, the subject says it all :-)
Plain .TXT file to Word .DOC file via Excel VBA - Possible? If it's possible, could someone help me with the code? TIA, CE |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This code will work. I'm using word to do the conversion, but running the
macro in Excel. Does that meet the requirements? FName = "c:\temp\abc.txt" WordFName = "c:\temp\abc.doc" Set Wordobj = CreateObject("Word.Application") Wordobj.Visible = True Wordobj.Documents.Open Filename:=FName, _ ConfirmConversions:=False Wordobj.activedocument.SaveAs Filename:=WordFName, _ FileFormat:=wdFormatDocument Wordobj.Quit "Charlotte E." wrote: Well, the subject says it all :-) Plain .TXT file to Word .DOC file via Excel VBA - Possible? If it's possible, could someone help me with the code? TIA, CE |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, Joel :-)
With a little modifications I got it to work, just as I wanted :-) CE Joel wrote: This code will work. I'm using word to do the conversion, but running the macro in Excel. Does that meet the requirements? FName = "c:\temp\abc.txt" WordFName = "c:\temp\abc.doc" Set Wordobj = CreateObject("Word.Application") Wordobj.Visible = True Wordobj.Documents.Open Filename:=FName, _ ConfirmConversions:=False Wordobj.activedocument.SaveAs Filename:=WordFName, _ FileFormat:=wdFormatDocument Wordobj.Quit "Charlotte E." wrote: Well, the subject says it all :-) Plain .TXT file to Word .DOC file via Excel VBA - Possible? If it's possible, could someone help me with the code? TIA, CE |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
convert email address file in Excel 2000 to Word file with commas | Excel Discussion (Misc queries) | |||
Import word file into excel as plain text | Excel Discussion (Misc queries) | |||
Formatted word file from an excel file??? | Excel Programming | |||
How to make a routine that will automatically print a word file after it has been changed via an ole link to an excel file? | Excel Programming | |||
send contents of cell b4 to a plain text file | Excel Programming |