ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   open word document (https://www.excelbanter.com/excel-programming/308293-open-word-document.html)

Kari

open word document
 
i need to open microsoft word, open a .doc file, paste some info from excel,
then close word again with VBA.

i've been able to get word open, just not a specific document.

Any ideas?

kari

rjtaylor[_8_]

open word document
 
I am working on something like this also.
I have this so far to open I just cant save it yet

Sub ttt()
Dim wdapp As Object
WBPath = ThisWorkbook.Path
WBPathPlus = WBPath & "\Starting Files\Bidding information.doc"
Set wdapp = CreateObject("Word.Application")
With wdapp
.Documents.Open Filename:=WBPathPlus
.Visible = True
End With
Set wdapp = Nothing
End Su

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 07:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com