I'm looking for a macro that will insert/add a new worksheet, and then move that newly created worksheet to the end of the workbook. Sounds simple but I can't figure out how to do it.
TIA!!
I'm looking for a macro that will insert/add a new worksheet, and then move that newly created worksheet to the end of the workbook. Sounds simple but I can't figure out how to do it.
TIA!!
Last edited by papaexcel; 05-20-2009 at 11:27 AM.
Please Login or Register to view this content.
Rule 1: Never merge cells
Rule 2: See rule 1
"Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".
Perfect! Thanks!
One other request...I also want a macro that will delete all existing worksheets in a workbook (sometimes as many as 30 worksheets) except for Sheet1 and Sheet2.
Again, TIA!!
Please Login or Register to view this content.
thanks, works great.
I found out the following works equally as well...
Please Login or Register to view this content.
My problem continues to grow!! Thanks a ton for the help already.
But now I need to do one more thing. When I use the above macro to create a new worksheet and move it to the end of the workbook, I want to also automatically rename that worksheet based on the the cell "A1" in "Sheet1". Incidentally, cell "A1" in "Sheet1" will always be a date, but I plan having it formated such that it reads 5-15-09. Thus I would want the sheet name of the newly created sheet to read 5-15-09.
Any ideas?
Again, thanks for all the help.
Please note that an error will be generated if there's nothing in cell A1 on sheet1
Please Login or Register to view this content.
Worked great. Thanks again...you've been most helpful.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks