Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Oh sorry, I meant "" by empty string, not FALSE.
So try to replace: If mystring = False Then by If mystring = "" Then Beware I did not test what I am saying, but am believing it works. Stefano -- Stefano Gatto "murphyz" wrote: Thank you, I'm getting there slowly. I now have it almost working perfectly, although when pressing cancel it ignores my 'you clicked cancel' text and prints out the 'you didn't enter anything' text - am I missing something silly? mystring = InputBox("Please enter sheet name here") If mystring = False Then MsgBox "You clicked cancel" ElseIf mystring = "" Then MsgBox "You didn't enter anything" Else Sheets("Template.com").Visible = True Sheets("Template.com").Select Sheets("Template.com").Copy After:=Sheets(2) Sheets("Template.com (2)").Select Sheets("Template.com (2)").Name = mystring Sheets("Template.com").Select ActiveWindow.SelectedSheets.Visible = False End If Finally, is there a way to copy the sheet to the very end of the tabs - Copy After:=Sheets(2) - regardless of how many worksheets there are? Many thanks Mxx -- murphyz ------------------------------------------------------------------------ murphyz's Profile: http://www.excelforum.com/member.php...o&userid=20624 View this thread: http://www.excelforum.com/showthread...hreadid=484219 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy rows from one Data sheet to another sheet based on cell conte | Excel Discussion (Misc queries) | |||
Auto Copy/autofill Text from sheet to sheet if meets criteria | Excel Discussion (Misc queries) | |||
'Copy to' Advance Filter depend only on sheet ID not start sheet | Excel Worksheet Functions | |||
how to find and copy values on sheet 2, based on a list on sheet 1 | Excel Programming | |||
relative sheet references ala sheet(-1)!B11 so I can copy a sheet. | Excel Discussion (Misc queries) |