I found the solution myself:
- Open the dataset and add a parameter (eg SheetName)
- In the connection tab, use dynamic content for sheet name. Choose parameter created in previous step. (eg @dataset().SheetName)
- In the copy task, open the source tab and it will ask to fill out the parameter called SheetName.