mountainman88
Board Regular
- Joined
- Jun 22, 2019
- Messages
- 109
- Office Version
- 2016
- Platform
- Windows
I have a 'consolidation' tab with a bunch of 3D sum formulas which refernce 'tab1' and 'tab2' ie the formula in any cell looks like: =sum(tab1:tab2![cell reference])
I want to use the 'consolidation' tab as a basis to create other tabs with 3D sums that refernce difference sheets based on a table on the 'table' tab
Can i get some VBA that goes down the table (lets say the table starts in cell A1 of the 'tables' tab) and duplicates the 'consolidation' tab, renames it 'new tab name', then performs a find and replace to replace tab1 and tab2 text with the corresponding items in the table.
eg. for the first line 'Consolidation' would be duplicated, renamed 'USA', then tab1 text in the 3D sum would be replaced with Arizona and the tab 2 text would be replaced with Ohio.
Continuing down the list until all 3D sum tabs in the list are created. The list of tabs can be variable in length.
Thanks!
I want to use the 'consolidation' tab as a basis to create other tabs with 3D sums that refernce difference sheets based on a table on the 'table' tab
New tab name | tab1 | tab2 |
USA | arizona | ohio |
Europe | uk | singapore |
HQ | Balance Sheet | Topside |
Can i get some VBA that goes down the table (lets say the table starts in cell A1 of the 'tables' tab) and duplicates the 'consolidation' tab, renames it 'new tab name', then performs a find and replace to replace tab1 and tab2 text with the corresponding items in the table.
eg. for the first line 'Consolidation' would be duplicated, renamed 'USA', then tab1 text in the 3D sum would be replaced with Arizona and the tab 2 text would be replaced with Ohio.
Continuing down the list until all 3D sum tabs in the list are created. The list of tabs can be variable in length.
Thanks!