So I have been using the dir command to open all the files in a folder and move them into an import workbook. My problem is that the command tends to default to the excel default save folder whenever I make changes to the macros in the original excel workbook, i.e. the first workbook with the macros stored in it opens the second workbook which the files from the dir command are moved to.
Is there a way to avoid this? My current workaround is to 'save as" before I run the macro and this normally fixes it, the other solution is that if I go to the folder where the original file is saved and double click on it I do not have to use the "save as" workaround.
Is there any vba code which can fix this without the above workarounds?
TIA
Patrick
Bookmarks