Shakie
Erfahrenes Mitglied
Probier mal alles im gesamten Code "genauer" zu definieren, also mit einem vorangestellten Scripting. , vielleicht hilft das ja.
also so:
also so:
Code:
Private Sub zCopyFolders(SourceFolder As Scripting.Folder, _
DestPath As String, FSO As Scripting.FileSystemObject, _
ByVal CreateFiles As Boolean, ByVal Overwrite As Boolean)
Dim nDestFolder As Scripting.Folder
Dim nDestPath As String
Dim nSubFolder As Scripting.Folder
Dim nFile As Scripting.File
Dim nFileName As String
usw...