Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it possible to run a macro within excel to open other
applications like word? My macro keeps returning the following error: "File format is not valid". Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Look at the GetObject information. e.g,
Set WDApp = GetObject(, "Word.Application") "Sherry" wrote in message ... Is it possible to run a macro within excel to open other applications like word? My macro keeps returning the following error: "File format is not valid". Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You need more than GetObject, as the app may not be instantaited already.
Something like On Error Resume Next Set WDApp = GetObject(, "Word.Application") If WDApp Is Nothing Then Set WDApp = CreateObject("Word.Application") If WDApp Is Nothing Then Exit Sub End If End If ... do your stuff -- HTH RP "Bill" wrote in message ... Look at the GetObject information. e.g, Set WDApp = GetObject(, "Word.Application") "Sherry" wrote in message ... Is it possible to run a macro within excel to open other applications like word? My macro keeps returning the following error: "File format is not valid". Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why does Exel open much slower than other applications? | Excel Discussion (Misc queries) | |||
Can't open Excel files from other applications | Excel Discussion (Misc queries) | |||
Open Microsoft Office Applications from another computer? | Excel Discussion (Misc queries) | |||
Hide (visible+AD0-false) all open applications? | Excel Programming | |||
Hide (visible+AD0-false) all open applications? | Excel Programming |