Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel 2003
From my notes I have: (PathOnlySource is the full path to the folder holding the files) ChDir PathOnlySource TheFile = Dir(PathOnlySource & "\*.xls") Do While TheFile < "" TheFile = Dir MsgBox TheFile Loop I thought that the line: TheFile = Dir(PathOnlySource & "\*.xls") would get the first .xls file name in the folder, which it appears to be doing. And I thought that the line: TheFile = Dir Would get subsequent file names which it appears it doesn't do. Where am I going wrong? Thanks for your help. Otto |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pulling pdf files from general folder to specific folder | Excel Discussion (Misc queries) | |||
Name of files in a folder | Excel Discussion (Misc queries) | |||
Check if a folder has x files in it. | Excel Discussion (Misc queries) | |||
Copying all files in a folder to new 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) |