A adz2013 Registered User. Local time Today, 17:16 Joined Dec 13, 2001 Messages 64 Jun 20, 2002 #1 Is there a way to call a file when you open MSWord through access? Last edited: Jun 20, 2002
simongallop Registered User. Local time Today, 17:16 Joined Oct 17, 2000 Messages 611 Jun 20, 2002 #2 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
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
A adz2013 Registered User. Local time Today, 17:16 Joined Dec 13, 2001 Messages 64 Jun 20, 2002 #3 Thanks Harry
S Shep Shep Local time Today, 11:16 Joined Dec 5, 2000 Messages 364 Jun 21, 2002 #4 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
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