Thanks JBeaucaire for your reply,I tried with the macro what you sent but getting error...out of range run-time script 9 like that....
Please add the following line ABOVE my macros title line:
Then, while still in the VBA editor, click on Debug > Compile VBAProject. See if the debugger points out any visible problems with your edits in advance.
Then run the macro again and when the error pops up (if it does again), be sure to select DEBUG so that it will open the editor and highlight the line of code it is failing on.
One simple idea, any chance you forgot the final "\" when editing the strPath?
I ran the module I wrote you multiple times and it seems to work fine, but my sheets are EXACTLY the way you described. Any chance your original specifications were off somehow? Is the sheet needed inside each workbook REALLY called by the exact same name as the workbook plus .xdo?
You could post a sanitized version of one of the import sheets so I can look at the layout.
BTW, your macro is pretty much the same exact approach mine uses, you've just got different variable names. It's the same critter.
Bookmarks