holiday form

k_babb

Board Regular
Joined
Mar 28, 2011
Messages
71
Hi i have a holiday form i am trying to design using excel

sheet1 has two columns one for forename and one for surname

sheet2 has all the names from sheet one then all the days from January
sheet3 has all the names from sheet one then all the days from February and so on till December. The idea being that all i need to do is add the names to sheet one and they will appear in all the sheets for each month my question is i want to sort the names in alphabetical order but how can i do this so that if i decide to sort sheet1 in February that the information in january sheet will move with the name thus preserve the data for the holidays taken by an individual in January
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Yes there is the event procedure

Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
'your code goes here
End Sub
Try recording the code when you manually sort and paste the code here. Presumably you want to sort sheets January to December identically to the sheet that you sort?
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,328
Members
452,907
Latest member
Roland Deschain

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