Message 1 of 4
Launching Word hangup

Not applicable
08-17-2000
02:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all.
A macro I use to launch Word2000 from LDD2 (Acad2000) sometimes needs to be
loaded twice to run for some strange reason. Only in N.T. however.
Here is the code, a user is getting the "cannot load Word" message the first
time. If the macro is loaded a second time it runs. Any ideas? Thanks.
Sub QLEGALP()
Dim WDAPP As Object
On Error Resume Next
Set WDAPP = GetObject(, "WORD.APPLICATION")
If Err <> 0 Then
Err.Clear
Set WDAPP = CreateObject("WORD.APPLICATION")
If Err <> 0 Then
MsgBox "Could not load Word"
End
End If
End If
WDAPP.Visible = True
WDAPP.Application.WindowState = wdWindowStateMaximize
WDAPP.Documents.Add Template:="C:\q-LEGAL\Qlegal-d.dot", NewTemplate:=False
End Sub
A macro I use to launch Word2000 from LDD2 (Acad2000) sometimes needs to be
loaded twice to run for some strange reason. Only in N.T. however.
Here is the code, a user is getting the "cannot load Word" message the first
time. If the macro is loaded a second time it runs. Any ideas? Thanks.
Sub QLEGALP()
Dim WDAPP As Object
On Error Resume Next
Set WDAPP = GetObject(, "WORD.APPLICATION")
If Err <> 0 Then
Err.Clear
Set WDAPP = CreateObject("WORD.APPLICATION")
If Err <> 0 Then
MsgBox "Could not load Word"
End
End If
End If
WDAPP.Visible = True
WDAPP.Application.WindowState = wdWindowStateMaximize
WDAPP.Documents.Add Template:="C:\q-LEGAL\Qlegal-d.dot", NewTemplate:=False
End Sub