Hi Guys,
Im quite new to VBA and im having problem copying folders.
Option Explicit
Sub autoCopy()
Dim PathName As String
Dim FSO As Object
Dim FromPath As String
Dim ToPath As String
PathName = ActiveCell.Value
MsgBox PathName '>> this is my pathname (Y:\2. USERS\Asri\MACC New Name\2010-08-12\HD001Y0\)
' FileCopy PathName, "Y:\2. USERS\Asri\testing\"
FromPath = PathName '<< Change
MsgBox PathName
ToPath = "Y:\2. USERS\Asri\testing" '<< Change
End Sub
Appreciate your help guys
Bookmarks