You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Excel VBA
Ciao a tutti, avrei un quesito da porvi
l'istruzione qui sotto utilizzata in excel 2003 funzionava benissimo
ossia leggeva in un dato percorso e in una cartella il numero di file
txt presenti e mi inseriva successivamente il percorso ed il nome di
ogni singolo file txt nelle celle dalla a2 in poi
Passando ad utilizzare excel 2007 questo non funziona piu'
Qualcuno sa dirmi cosa bisogna fare per ovviare a questo problema?
-----------------------------------------------------
Application.DisplayAlerts = False
Dim MyFile, MyFileFound
MyFile = ActiveWorkbook.FullName
NUM = 0
On Error Resume Next
Set fs = Application.FileSearch
With fs
.LookIn = CurDir
.Filename = "*.TXT"
If .Execute() > 0 Then
For I = 1 To .FoundFiles.Count ' inizia il ciclo per iil
numero dei file trovati
MyFileFound = .FoundFiles(I)
If MyFileFound <> MyFile Then
Range("a" & NUM + 2) = MyFileFound
NUM = NUM + 1
End If
Next
End If
End With
Scossa
unread,
Mar 10, 2012, 12:02:33 PM3/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Excel VBA
Ciao,
Excel 2007 non supporta Application.FileSearch
Lillo
unread,
Mar 10, 2012, 4:05:27 PM3/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Excel VBA
On 10 Mar, 18:02, Scossa <scossa...@gmail.com> wrote:
> Ciao,
>
> Excel 2007 non supporta Application.FileSearch