Una famiglia di sistemi di gestione per database relazionali di Microsoft progettati per semplificare l'uso.
Grande Mauro
Grazie..
L'ultima cosa che sto provando ma non riesco:
se il file non è presente nelle subfolders possiamo far uscire un msgbox "file non presente"
Grazie ancora
prova:
Public Sub m()
Dim objFSO As Object
Dim objFolder As Object
Dim objFile As Object
Dim objSubfolder As Object
Dim colSubfolders As Object
Dim wshshell As Object
Dim bln As Boolean
Set wshshell = CreateObject("wscript.shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("C:\Prova")
Set colSubfolders = objFolder.Subfolders
On Error Resume Next
For Each objSubfolder In colSubfolders
For Each objFile In objSubfolder.Files
wshshell.Run """" & objSubfolder.Path & "" & Elenco5.Column(1) & """"
If Err.Number = 0 Then
bln = True
Exit For
End If
Err.Number = 0
Next
Next
If bln = False Then
MsgBox "File non trovato"
End If
Set wshshell = Nothing
Set objSubfolder = Nothing
Set colSubfolders = Nothing
Set objFile = Nothing
Set objFolder = Nothing
Set objFSO = Nothing
End Sub