ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Loop through workbooks and worksheets in each workbook (https://www.excelbanter.com/excel-programming/386507-loop-through-workbooks-worksheets-each-workbook.html)

[email protected]

Loop through workbooks and worksheets in each workbook
 
Hi:

I am looking for a code sample that will loop through all excel
workbooks and all of worksheets within each of the workbooks.

Can someone please provide some insight into how to accomplish this?

Thanks,
Eric


Don Guillett

Loop through workbooks and worksheets in each workbook
 
this is the basic idea.

for each wb in workbooks
for each ws in worksheets
do thing
next ws
next wb

--
Don Guillett
SalesAid Software

wrote in message
oups.com...
Hi:

I am looking for a code sample that will loop through all excel
workbooks and all of worksheets within each of the workbooks.

Can someone please provide some insight into how to accomplish this?

Thanks,
Eric





All times are GMT +1. The time now is 10:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com