Thanks AB33,
But I thought this would loop through all the worksheets in the open workbook:
Because in another macro that copies all worksheets in a folder to a new workbook with each worksheet on separate worksheets in the new workbook. But it isn't looping here properly, and for the life of me I cannot figure out why. I stepped through the code using 'debug.print' statements, but couldn't discover the logic error. I haven't programmed in a few years, so my skills are rusty, but this one has me stumped....the loop works in one macro, but not another...thank you Microsoft....
---------- Post added at 02:19 PM ---------- Previous post was at 02:15 PM ----------
Any way, here is the entire block of code, and I made a change to create a new workbook and put the copied data into it, but still can't get it to loop through all of the worksheets in all of the workbooks.
So, please, if anyone out there see's something I am missing, or typo's, anything, I'd appreciate it if you could point it out to me. Sometimes it is better when different eyes look at it because after the day I have had so far, everything looks fine, but I just know there is some small error. Thanks again.
Bookmarks