Help please!
On Feb 11, 3:31*am, Bobby wrote:
I did try from the web the following statement to see if the file is
open but it always try to open it!
Can someone help?
Thank's ahead
pathsystemeinterne = "C:\Indic_Entr\interne\Système\Entrepot.xls"
On Error Resume Next
Set wBook = Workbooks(pathsystemeinterne)
If wBook Is Nothing Then
* Workbooks.Open Filename:=pathsystemeinterne
* Set wBook = Nothing
* On Error GoTo 0
End If
Try comparing your file name with the files that are already open
Sub test()
Dim wbk As Workbook
Dim nm As String
For Each wbk In Workbooks
nm = wbk.FullName
Next
End Sub
|