Open a program useing a button

adz2013

Registered User.
Local time
Today, 00:25
Joined
Dec 13, 2001
Messages
64
Is there a way to call a file when you open MSWord through access?
 
Last edited:
This way opens word becauseyou are calling a specific word document

Dim HypLink As String

HypLink = "C:\MyDocuments\TestFile.doc"
Application.FollowHyperlink HypLink, , True

HTH
 
Thanks Harry:cool:
 
Here's another way:

Code:
Dim objWord As Object
Set objWord = CreateObject("Word.Basic")
With objWord
    .AppShow
    .AppMaximize
    .FileOpen "c:\windows\desktop\test.doc"
End With
Set objWord = Nothing
 

Users who are viewing this thread

Back
Top Bottom