Hello all,
I have this macro created with macro recorder that makes a copy of my worksheet
How can I change this to copy the ACTIVE worksheet instead of the named worksheet?Sub copy_worksheet Sheets("Green").Copy After:=Sheets(1) End sub
thanks
Last edited by duugg; 06-30-2009 at 02:10 PM.
Just a slight amendment
Sub copy_worksheet ActiveSheet.Copy After:=Sheets(WorkSheets.Count) End sub
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
Thanks Roy!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks