Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I must be asking for the wrong thing in the archives as nothing
pertinent to this is coming up. I'd like to be able to take user input to name sheets copied from a hidden template. What I mean is that right now workbook works well, user clicks button in floating toolbar and a copy of the hidden template is made and I then prompt user to change the tab name to something pertinent. We're ready to move on and to instead have a message box come up to prompt the user to enter a tab name that will then rename that new sheet. Is there a way to do this? Thanks. :oD |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() ??? dont know if i unerstand you, but something like this should work. Code ------------------- Sub renameWorksheet() Dim NewName As String NewName = InputBox("Give the tab a new name", "Rename") If NewName = "" Then NewName = InputBox("Go ahead, make my day, please, please", "Rename") If NewName = "" Then Exit Sub End If ActiveSheet.Name = NewName End Sub ------------------- -- Pointles ----------------------------------------------------------------------- Pointless's Profile: http://www.excelforum.com/member.php...fo&userid=3086 View this thread: http://www.excelforum.com/showthread.php?threadid=50811 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
PERFECT!!! It's my last day here in this contract so was just able to fix
up the macro. XL2K is too neat for words. They have a button that copies a hidden template sheet and now also asks them for a name, all in one click! Kewl. Thanks! :oD "Pointless" wrote in message ... ??? dont know if i unerstand you, but something like this should work. Code: -------------------- Sub renameWorksheet() Dim NewName As String NewName = InputBox("Give the tab a new name", "Rename") If NewName = "" Then NewName = InputBox("Go ahead, make my day, please, please", "Rename") If NewName = "" Then Exit Sub End If ActiveSheet.Name = NewName End Sub -------------------- -- Pointless ------------------------------------------------------------------------ Pointless's Profile: http://www.excelforum.com/member.php...o&userid=30862 View this thread: http://www.excelforum.com/showthread...hreadid=508112 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Relation betwn 2 sets of data, user to input one, sheet returns ot | Excel Worksheet Functions | |||
Moving data in one excel column to another sheet based on user input | Excel Discussion (Misc queries) | |||
I would like to sort a work sheet based upon user input value,(dat | Excel Worksheet Functions | |||
I would like to sort a work sheet based upon user input value,(dat | Excel Worksheet Functions | |||
Help with Macro. -- User input for sheet name | Excel Programming |