The reason that everything is pasting to the sheet with the button on it is because it is the active sheet. What you need to do is when you copy data is to nominate not just the range but the worksheet name as well. If I use the following
If will paste the data onto the sheet that is active (the sheet containing the button). However if I do this
It will paste to the sheet called data. It is all about referencing. Excel will always paste to the active sheet unless you tell it otherwise - you need to reference the sheet where the data is going to and in this case I have used "ws" to refer to the sheet called Data
If you use the method of worksheetname.Range.Paste as your code the data will end up on the page you want.
The other final way is to use the sheet number - In your case Sheet 25
Use the index number of the sheet to reference where the data is entered
Hope this helps.
Anthony
“Confidence never comes from having all the answers; it comes from being open to all the questions.”
PS: Remember to mark your questions as Solved once you are satisfied and rate the answer(s) questions.”
Bookmarks