abringley1083
New Member
- Joined
- Jul 14, 2020
- Messages
- 3
- Office Version
- 2016
- Platform
- MacOS
I have a macro I want to iron out... I need to copy/paste specific columns from one work sheet to another. I believe I have it to where when I run the macro, it will successfully copy/paste the columns.
My problem is the way I wrote the macro, it only knows to do it between two certain worksheets. For example, if I want to copy the columns from worksheet X into worksheet Y, it's written to do that. But if I start the macro on worksheet Z (to copy the columns into that particular worksheet), it still copies into worksheet Y.
Basically I want the code "Sheets("Y").Select" to be something like "Sheets(most recent/last visited/something).Select"
Let me know if you can help with this on Mac OS Excel 16.
My problem is the way I wrote the macro, it only knows to do it between two certain worksheets. For example, if I want to copy the columns from worksheet X into worksheet Y, it's written to do that. But if I start the macro on worksheet Z (to copy the columns into that particular worksheet), it still copies into worksheet Y.
Basically I want the code "Sheets("Y").Select" to be something like "Sheets(most recent/last visited/something).Select"
Let me know if you can help with this on Mac OS Excel 16.