B
Bruce
Hi,
Part of my database processing is to copy a template folder structure
from the Masters into the Project folder and prefix all these copied
folders with the Project number.
I have executed the first part ok with the CopyFolder function.
The second part is a bit harder. I need to count all the subfolders,
then loop through them one at a time prefixing them with the Project
Number to subfolders two levels deep (I didn't set up the system, I
just gotta work with it).
I've tried using the Folder object but I don't know how to specify a
directory.
I've tried the looping method using the Dir function as provided by
Microsoft help, but I can't specify a deep enough structure.
The logic language of what I want to do is:
For i = 1 to NewFolder(Level 2).Subfolders.Count
With NewFolder(Level 2)
.Subfolder(i).Name = strProjectNumber & " " & _
.Subfolder(i).Name
End With
Next i
Any ideas?
Cheers,
Bruce P Walker
Part of my database processing is to copy a template folder structure
from the Masters into the Project folder and prefix all these copied
folders with the Project number.
I have executed the first part ok with the CopyFolder function.
The second part is a bit harder. I need to count all the subfolders,
then loop through them one at a time prefixing them with the Project
Number to subfolders two levels deep (I didn't set up the system, I
just gotta work with it).
I've tried using the Folder object but I don't know how to specify a
directory.
I've tried the looping method using the Dir function as provided by
Microsoft help, but I can't specify a deep enough structure.
The logic language of what I want to do is:
For i = 1 to NewFolder(Level 2).Subfolders.Count
With NewFolder(Level 2)
.Subfolder(i).Name = strProjectNumber & " " & _
.Subfolder(i).Name
End With
Next i
Any ideas?
Cheers,
Bruce P Walker