Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This routine renames the file "old.jpg" with a new 8 digit name consisting
of today's day, hour, minute and second. How can I modify this so it loops through all of the files in that directory and renames them? Sub RenamePIX() Dim x As String, y, z, OldName, NewName x = "C:\Documents and settings\user\my documents\PIX\" y = Format(Date, "dd") z = Format(Time, "hhmmss") OldName = x & "OLD.jpg": NewName = x & y & z & ".jpg" Name OldName As NewName End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pulling pdf files from general folder to specific folder | Excel Discussion (Misc queries) | |||
How to create a copy of a folder having five files in it, & rename | Excel Worksheet Functions | |||
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? | Excel Discussion (Misc queries) | |||
How to copy 30 csv files from a folder to another folder | Excel Programming | |||
rename folder o files with value from inside each wbk | Excel Programming |