Link to home
Start Free TrialLog in
Avatar of maximyshka
maximyshka

asked on

Rename folders in VBA

Hi,
I need help writting code in vba access .
The code should search directory for folders named "name" and change those folders name into "names"

thanks
Avatar of Surone1
Surone1
Flag of Suriname image

Avatar of Jeffrey Coachman
This will work without the need for external libraries:

Dim strOriginalName As String
Dim strNewName As String
   
    strOriginalName = "C:\Junk"
    strNewName = "C:\JunkNew"
   
    Name strOriginalName As strNewName

JeffCoachman
ASKER CERTIFIED SOLUTION
Avatar of theGove
theGove

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial