Good day Paula,
.....files i need to copy from are also .xlms?
I assume that you mean xlsm.
I can think of three ways just off the top of my head:-
1) Copy the code in post #2, paste it beneath the original code (in the same module) but change this line:-
to
then change the code's title to, say, PaulaMc2 (can't have two codes named exactly the same) and place this new code name just below
'Loop' in the original code. Once the loops are completed for the original code looking for the 'xlsx' extension, the second code will kick in looking for any 'xlsm' extensions.
2) We could re-hash the original code as follows to also find the 'xlsm' extension:-
3) Use Power Query as Olly suggests in post #4. Power Query may be a much faster option than option(2) as that code may take a while to execute depending on the quantity of source files that need to be accessed.
Perhaps Olly may like to come back and give you further guidance here. I've only ever glossed over Power Query
I hope that this helps.
Cheerio,
vcoolio.
Bookmarks