nicoletta99
New Member
- Joined
- Oct 31, 2020
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
Hello all! I'm hoping this is a simple one for you all… fingers crossed!
I have a spreadsheet with heaps of tabs and have two macro requirements.
1) If I list 10 tabs in cell A2-A11 of the "Collation" tab, I need a macro that will loop through each of the 10 tabs listed and copy cells A4:C40 and paste it into the "Collation" tab below each other (starting in cell A21).
2) If I have a keyword in cell B1 of the "Search" tab, I need a macro to loop through column A of every tab in the file (until an empty cell - not whole column). If it finds the keyword in any of those tabs, I need it to list what tab it found the true value (could be more than 1) in a list on the Collation tab starting in cell A4.
I'm still learning ranges and strings, and as much as I try to google examples and put it together I'm getting so many errors I don't know how to fix!
I'm hoping these examples will be the basis for many awesome spreadsheets to come - so thanks for your help
I have a spreadsheet with heaps of tabs and have two macro requirements.
1) If I list 10 tabs in cell A2-A11 of the "Collation" tab, I need a macro that will loop through each of the 10 tabs listed and copy cells A4:C40 and paste it into the "Collation" tab below each other (starting in cell A21).
2) If I have a keyword in cell B1 of the "Search" tab, I need a macro to loop through column A of every tab in the file (until an empty cell - not whole column). If it finds the keyword in any of those tabs, I need it to list what tab it found the true value (could be more than 1) in a list on the Collation tab starting in cell A4.
I'm still learning ranges and strings, and as much as I try to google examples and put it together I'm getting so many errors I don't know how to fix!
I'm hoping these examples will be the basis for many awesome spreadsheets to come - so thanks for your help