Sorting Multiple Sheets Simultaneously!

MathMakesMeMad

New Member
Joined
May 9, 2016
Messages
6
Hello Crew!
I'm really new on this forum and I'm getting used with VBA for excel. So I'm not an expert yet. Please forgive me!
Basically, I have 7 sheets, each one based on different issues. Below I'll write an example, just to have a simple idea. (Columns A to F)

Sheet 1

CODE COUNTRY POPULATION NAME LANGUAGE AVERAGE
1ITALY1,000,000italianitalian27
2SPAIN2,500,000spanishspanish25
3BRAZIL30,000,000brazilianportuguese23
4CANADA17,000,000canadianenglish24
5FRANCE1,800,000frenchfrench26

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>

Sheet 2 (=Sheet1!A2) (=Sheet1!B2) (=Sheet1!C2)
CODE COUNTRY POPULATION MOUNTAIN LAKE EXTENSION
1ITALY1,000,000BiancoGarda1500
2SPAIN2,500,000TeideZzz1800
3BRAZIL30,000,000YyyyThat2030
4CANADA17,000,000XxxDontknow1900
5
FRANCE1,800,000BlancheXyz2700

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>


Sheet 3
CODE COUNTRY POPULATION RELIGION MEMBERS LABEL
1ITALY1,000,000Catholic1,200,000C
2SPAIN2,500,000Blablabla2,000,000E
3BRAZIL30,000,000Catholic1,000,000A
4CANADA17,000,000British6,000,000G
5FRANCE1,800,000Protestant3,000,000F

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>
sheet 4/sheet 5...
and so on.
Always with the first 3 columns A to C repeated and mirrored.
I'm struggling to create a code which can sort all the sheets simultaneously, when I sort by Code, or by country, or by population in the first sheet, given that all those 3 columns are the same in the 7 sheets.
Obviously, If I sort only the first sheet, then it reflects into A-B-C columns of the others sheets, but all related data in columns D to F are messed up!
I guess it's quite simple code, but I don't know how to sort this out!!
Please help!
Any suggestion?
Thanks
Vito
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,215,430
Messages
6,124,849
Members
449,194
Latest member
HellScout

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top