I can't thank you enough for the time your taking to help me.
What I want is to create a foolproof situation, since other people are working with the file I created.
On the first sheet I have got a list of names and their functions of the company.
Column A has the surname, column B has the forename and column C has their function.
The surname and the forename, but not their functions, are also on the twelve other sheets.
That's why I made a button to copy/paste the names to the other sheets and put them in alphabetical order.
I made a manual telling the people to select only the surname and forename of the employees that they want to copy/paste before clicking the button.
For some reason they also (sometimes) select their function and when they hit the button, the sheets the names are pasted to are messed up. Because in the twelve destination sheets I have different information in column C.
That's why I was looking for a way so that the button will only work when the surname and the forname of an employee is selected and not the function.
In the last solution you have provided, people using the file, will have to check in which cells the names are and then input the cell range. This could cause another problem, since the people using the file are not the brightest ones. They could also input for example the range A10:C10.
Idealy what I want is this:
When the surname and the forename are selected (e.g. A10:B10) and the button is clicked, the macro's will work.
When more data is selected (e.g. A10:C10), the button won't work and a message will appear telling the user to only select the surname and forename of the employee they want to copy/paste.
I hope my problem is clear now and my apologies for any confusion I have caused.
Kind regards,
Trowa