i would like to know how to open a file within word
i already know how to open microsoft word but not a file
any ideas say for eg the file name is john.doc how would i open it
thanks
:eek:eek :eek:eek :eek:eek:ekk:
Printable View
i would like to know how to open a file within word
i already know how to open microsoft word but not a file
any ideas say for eg the file name is john.doc how would i open it
thanks
:eek:eek :eek:eek :eek:eek:ekk:
Maybe this will help:
------------------Code:Dim wrdApp As Object
Set wrdApp = CreateObject("Word.Application")
wrdApp.Visible = True
wrdApp.documents.open filename:="C:\Johnny23.doc"
Set wrdApp = Nothing
Visual Basic Programmer
------------------
PolComSoft
You will hear a lot about it.
You can cheat a lot by doing this
X=Shell("START MyDoc.DOC",1)
This'll open whatever application is currently linked to .DOC files (normally Word). There are better ways to do this via API calls and a quick search of the Tips section of this site should unearth them.
------------------
Mark "Buzby" Beeton
VB Developer
[email protected]