Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy/Paste Worksheet to last and rename with input box for value.
One way would be like this:-
Dim ws As Worksheet lastsheetnum = 0 For Each ws In Worksheets lastsheetnum = lastsheetnum + 1 Next ws ActiveSheet.Copy after:=Worksheets(lastsheetnum) NewSheet = InputBox("Give the sheet a name") ActiveSheet.Name = NewSheet "Josh" wrote in message ... How can I copy/paste a worksheet into it's current workbook as the last sheet and rename it with a pop-up input box requesting the name of the new worksheet. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro: Copy a worksheet and rename it to a specified value | Excel Discussion (Misc queries) | |||
Copy worksheet and rename sheet | Excel Discussion (Misc queries) | |||
Copy, Paste and Rename a Range using a macro | Excel Discussion (Misc queries) | |||
Rename a Worksheet on Input of Value in Cell | Excel Worksheet Functions | |||
Copy/Paste Worksheet to last and rename with input box for value. | Excel Programming |