View Single Post
 
Old 10-23-2016, 11:46 PM
staicumihai staicumihai is offline Windows 7 32bit Office 2010 32bit
Advanced Beginner
 
Join Date: Dec 2015
Posts: 33
staicumihai is on a distinguished road
Default Word 2010 Macro to rename Folder in Directory

Hi guys,

In this folder D:\MIHAI\DOSARE\BAAR I have a folder that my collegues put there every few hours, the name of the folder is never the same.

I want to know if it is possible to make a VBA code that changes the folder name to "MICHAEL.current date_current hour" (ex. "MICHAEL.24.10.2016_09:43:23") without knowing the initial name of the folder (it is the only folder in the directory D:\MIHAI\DOSARE\BAAR)

I need to use the VBA code from Microsoft Word 2010.

Any ideas ?
Thanks!

Last edited by staicumihai; 10-24-2016 at 03:30 AM.
Reply With Quote