View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
jason jason is offline
external usenet poster
 
Posts: 104
Default Late Bind to Specific version of Application

I'm running the below code:

Dim strApp As String
strApp = "Word.Application"
'check to see if Word is running
If Not IsRunning(strApp) Then
Set WordApplication = CreateObject(strApp)
Else
Set WordApplication = GetObject(, strApp)
End If
strApp = ""

ANYWAY TO MAKE SURE IT ONLY BINDS ONTO A SPECIFIC VERSION OF WORD IF
TWO VERSIONS ARE INSTALLED ON THE MACHINE?

any help greatly appreciated

Jason