openning word

  • Thread starter Thread starter anthony
  • Start date Start date
Hi there,

How about this:

Sub OpenWord()
Shell "winword.exe", vbMaximizedFocus
End Sub

Cheers,
Foss
 
Set objWd= CreateObject("Word.Application"
objWd.Open "fully qualified file name"
objWd.Visible = tru
set objWd = Nothin

Starts Word, opens a document and leaves it in the task bar for the use to use/close.
 
This works very well to open word, but is there any way
to open a specific word file, i just keep getting a
runtime 5 error.
 
How about this one?

Sub OpenWord()
Shell "winword.exe " & Chr(34) & "C:\address.doc" & Chr
(34), vbMaximizedFocus
End Sub

This works for me..

Cheers,
Foss
 
Works Perfectly, Thanks Foss.

-----Original Message-----
How about this one?

Sub OpenWord()
Shell "winword.exe " & Chr(34) & "C:\address.doc" & Chr
(34), vbMaximizedFocus
End Sub

This works for me..

Cheers,
Foss

.
 
Glad to hear it

----- anthony wrote: ----

Works Perfectly, Thanks Foss
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top