Sub copysheetnameSAS() Sheets("Master").Copy after:=Sheets(Sheets.Count) ActiveSheet.Name = "Week " & _ InputBox("Enter week NUMBER ie: 10") End Sub
Don Guillett SalesAid Software dguille...@gmail.com From: pawel lupinski Sent: Wednesday, February 08, 2012 5:01 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ MASTER macro. Hi All, I know you can help me as many times before,so this time I'd like to ask you for help with simple macro. I'd like to do macro that will copy "MASTER" tab to the end of the tabs, but this macro (will be perfect) if can ask user for week number, and change name "MASTER" to "week and the number that user wrote", e.g. user wrote "10" so the new tab will be "week 10" Can you help me on this point. Thanks, Pawel -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com