Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I copy all these files into a new folder
File names are of standard = "XXXX MmmYy" Thus I need to change their names to ""XXXX Mmm-1Yy" So the code that I have is Const Dest = "C:\Mis documentos\12 December 2005" Dim FSO As Object Dim f, f1, fc Set FSO = CreateObject("Scripting.FileSystemObject") Set f = FSO.GetFolder(Dest) Set fc = f.Files For Each f1 In fc f1.Name = Mid(f1.Name, 1, (Len(f1.Name) - 9)) & Dateserial(year,month-1) Next It stops in the For next loop Can someone help? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pulling pdf files from general folder to specific folder | Excel Discussion (Misc queries) | |||
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 can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? | Excel Programming | |||
create a list of worksheet names (from a single folder, or open files) | Excel Discussion (Misc queries) | |||
Change names of files in a folder to match names in Excel Column | Excel Programming |