Excel worksheet loop using Macro
miked
New Altair Community Member
Hi All - I'm having trouble with something I thought would be relatively easy and unable to get through it. I basically would like to "Read Excel" in a loop by using a macro to loop through however many sheets are in this file as they can change from month to month. The data structure is the same on each tab but each contain a different element. If possible would also like to create an attribute using the tab name so I can track where the data came from. Any help would be appreciated. Thanks
0
Best Answers
-
Hi,Operator Toolbox has an operator called 'Read Excel Sheet Names' to get the names of the tabs. You can then loop over it and read each tab.Best,Martin1
-
Hi,attached is an example process and excel file.Best,Martin0
Answers
-
Hi,Operator Toolbox has an operator called 'Read Excel Sheet Names' to get the names of the tabs. You can then loop over it and read each tab.Best,Martin1
-
Thank you!0
-
Hi,attached is an example process and excel file.Best,Martin0
-
Thanks so much...appreciate the help!1