Hi,
I have an excel worksheet where they can add new worksheets (2) for each customer. The worksheets will be named according to the cusotmer's name such as Joe-Branch, Joe-State, Lisa-Branch, Lisa-State and so on. I need to create a summary sheet based on what they enter on those sheets so I am going to use a button with vba code to loop though the sheets to get the answers. I don't know how many customers there will be or what the sheet names will be besides the "-Branch" and "-State" part of the name. How do I use a loop to go through the sheets with -Branch in the sheet name to get the answers and store them to a summary sheet's cell. Then I would run the code to loop through each -State sheet to get those totals. I do know how to loop though all sheets in a workbook but not every other one depending on the sheets name.
Thanks
Lisa
I have an excel worksheet where they can add new worksheets (2) for each customer. The worksheets will be named according to the cusotmer's name such as Joe-Branch, Joe-State, Lisa-Branch, Lisa-State and so on. I need to create a summary sheet based on what they enter on those sheets so I am going to use a button with vba code to loop though the sheets to get the answers. I don't know how many customers there will be or what the sheet names will be besides the "-Branch" and "-State" part of the name. How do I use a loop to go through the sheets with -Branch in the sheet name to get the answers and store them to a summary sheet's cell. Then I would run the code to loop through each -State sheet to get those totals. I do know how to loop though all sheets in a workbook but not every other one depending on the sheets name.
Thanks
Lisa