![]() |
open a word file from xl
how do i open a txt file in word using vba?
file name and path is C:\Test.txt |
open a word file from xl
ChangeFileOpenDirectory "C:\"
Documents.Open FileName:="RESETLOG.TXT", ConfirmConversions:=False, _ ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _ PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _ WritePasswordTemplate:="", Format:=wdOpenFormatAuto -----Original Message----- how do i open a txt file in word using vba? file name and path is C:\Test.txt . |
still need help
thanks 4 posting
i tried what you said and it did not work the version of xl im using is 97, i hit the object browser and could not find documents in their. pls help me -----Original Message----- ChangeFileOpenDirectory "C:\" Documents.Open FileName:="RESETLOG.TXT", ConfirmConversions:=False, _ ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _ PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _ WritePasswordTemplate:="", Format:=wdOpenFormatAuto -----Original Message----- how do i open a txt file in word using vba? file name and path is C:\Test.txt . . |
All times are GMT +1. The time now is 08:46 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com