(E-Mail Removed) (Bruce) wrote in message news:<(E-Mail Removed)>...
Never mind, I solved it with the following code:
Dim strDirectory, strProjectRef As String
Dim strFolderName, strDestination As String
Dim fso As Object
Dim fdrNewFolder As Folder
Set fso = CreateObject("Scripting.FileSystemObject")
'Copy Project Folder Setup across and rename
fso.copyfolder strFolderSetup, strDirectory, False
'Set directory to "\Drawings"
strDirectory = strDirectory & strSub1
'Rename appropriate subfolders with Project Number
For i = 1 To 2
strFolderName = Dir(strDirectory, vbDirectory) ' Retrieve the
first entry.
Do While strFolderName <> ""
' Ignore the current directory and the encompassing directory.
If strFolderName <> "." And strFolderName <> ".." Then
' Use bitwise comparison to make sure strFolderName is a
directory.
If (GetAttr(strDirectory & strFolderName) And vbDirectory)
= vbDirectory Then
Name strDirectory & strFolderName As strDirectory &
strProjectNo & strFolderName
End If
End If
strFolderName = Dir ' Get next entry.
Loop
strDirectory = strDestination & strProjectRef & "\"
Next i