</code> Sub Dati_File_Scelto()    MsgBox "Autore David Crowell. Adattamenti e implementazioni di Riccardo UFILUGELLI"     Percorso = ActiveWorkbook.Path        Percorso = "c:\magazzino"    Percorso = InputBox("Inserire il nome di un percorso per visualizzare le proprietà delle immagini presenti", "Visualizzazione File", Percorso)    Tipo = "*.JPG"    Tipo = InputBox("Inserire il Tipo di file che si vuole visualizzare", "Scelta Tipo File", Tipo)    Range("A2:h2").Select    Range(Selection, Selection.End(xlDown)).Select    Selection.ClearContents    Range("A1").Select        nome = Percorso & "\" & Tipo    f = Dir(nome)    i = 2    Cells(i, 1) = f    Nome_File = f    nome = Percorso & "\" & Nome_File 'f        If UCase(Mid(Nome_File, Len(Nome_File) - 2, 3)) = "JPG" Or _            UCase(Mid(Nome_File, Len(Nome_File) - 2, 3)) = "BMP" Or _            UCase(Mid(Nome_File, Len(Nome_File) - 2, 3)) = "GIF" Or _            UCase(Mid(Nome_File, Len(Nome_File) - 2, 3)) = "PNG" Then                        ReadImageInfo (nome)            Scrivi_Proprietà        End If    Cells(i, 2) = FileDateTime(nome)    Cells(i, 3) = FileLen(nome)    Cells(1, 4) = "Tipo Immagine"    Cells(1, 5) = "Altezza"    Cells(1, 6) = "Larghezza"    Cells(1, 7) = "Profondità in bit"    For i = 3 To 20000        On Error GoTo continua:        Cells(i, 1) = Dir        Nome_File = Cells(i, 1)        nome = Percorso & "\" & Nome_File        Cells(i, 2) = FileDateTime(nome)        Cells(i, 3) = FileLen(nome)        If UCase(Mid(Nome_File, Len(Nome_File) - 2, 3)) = "JPG" Or _            UCase(Mid(Nome_File, Len(Nome_File) - 2, 3)) = "BMP" Or _            UCase(Mid(Nome_File, Len(Nome_File) - 2, 3)) = "GIF" Or _            UCase(Mid(Nome_File, Len(Nome_File) - 2, 3)) = "PNG" Then                        ReadImageInfo (nome)            Scrivi_Proprietà        End If    Next i continua: End Sub Sub Scrivi_Proprietà()    Select Case m_ImageType        Case 1            Tipo = "GIF"        Case 2            Tipo = "JPG"        Case 3            Tipo = "PNG"        Case 4            Tipo = "BMP"        Case Else            Tipo = "N/D"    End Select    Cells(i, 4) = Latitudine    Cells(i, 5) = m_Height    Cells(i, 6) = m_Width    Cells(i, 7) = m_Depth
 End Sub  |