F Foss Jun 3, 2004 #2 Hi there, How about this: Sub OpenWord() Shell "winword.exe", vbMaximizedFocus End Sub Cheers, Foss
G Guest Jun 3, 2004 #3 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.
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.
A anthony Jun 3, 2004 #4 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.
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.
F Foss Jun 3, 2004 #5 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
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
A anthony Jun 3, 2004 #6 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 . Click to expand...
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 . Click to expand...