Sub WriteLog(strText As String)
Open DocToIndexPath & "index.log" For Append As #1
Print #1, Now() & " " & strText
Close #1
End SubWriteLog ("coucou ")Sub CreateIndex()
Dim strBuffer As String
Debug.Print "Start"
Open docPath & "Untitled.txt" For Input As #1
strBuffer = Input(LOF(1), 1)
Close #1
Debug.Print strBuffer
End SubDim oShell
WScript.Sleep 10*1000 ' attendre 10 secondes
Set oShell = WScript.CreateObject("WScript.Shell")
oShell.run("notepad.exe")Dim cellSelected As Range
For Each cellSelected In Selection
If Not cellSelected.EntireRow.Hidden Then
...
end if
Next cellSelected