Hi,
I have this code to open a tif file.
Before I open the file using "Img.Open" i would like to know if the file is already open. Because, if the file is open i get a run time error, wwhich i want to avoid.
Please help.
I have this code to open a tif file.
Code:
If App Is Nothing Then
Set App = CreateObject("imaging.application")
End If
If Img Is Nothing Then
Set Img = App.createimageviewerobject(1)
End If
strPath = File1.Path & "\" & File1.Filename
Img.Open strPath
Before I open the file using "Img.Open" i would like to know if the file is already open. Because, if the file is open i get a run time error, wwhich i want to avoid.
Please help.