Open Word Doc in foreground

patrickmcdiver

Registered User.
Local time
Today, 18:50
Joined
Jan 7, 2010
Messages
39
I created a command button that opens a MS Word Doc from my database using the following code:

Dim oApp As Object
Dim strDocName As String

strDocName = "E:\Patrick\Bids\Selling Points\Estimate Pipeline Insp"
Set oApp = CreateObject("Word.Application")
oApp.Visible = True
oApp.Documents.Open strDocName

Problem is, it opens in the background. How do I make this open in the foreground?
 
Code:
Application.FollowHyperlink "E:\Patrick\Bids\Selling Points\Estimate Pipeline Insp\File.doc", , True
 

Users who are viewing this thread

Back
Top Bottom