Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Opening an already existant Word document with an Excel Macro
Hi,
I need to open a specific Word document while running an Excel macro. Up until now, I've been able to open a new document in Word : Application.ActivateMicrosoftApp xlMicrosoftWord Any ideas on how to accomplish that? Thanks! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Opening an already existant Word document with an Excel Macro
Dim oWord as Object
Dim oDoc as Object Set oWord = CreateObject("Word.Application") oWord.Visible = True Set oDoc = oWord.Documents.Open("C:\personal\bob\personal\CV - RP (short).doc") -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Tan" wrote in message ... Hi, I need to open a specific Word document while running an Excel macro. Up until now, I've been able to open a new document in Word : Application.ActivateMicrosoftApp xlMicrosoftWord Any ideas on how to accomplish that? Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
stop error message when opening a non existant file in a macro | Excel Discussion (Misc queries) | |||
Opening a Word Document using an Excel (2000) Macro? | Excel Discussion (Misc queries) | |||
Opening word document through excel vba | Excel Discussion (Misc queries) | |||
opening a word document from excel | Excel Programming | |||
Opening a Word Document in Excel | Excel Programming |