Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
To check if a worksheet name exists, you can use...
'============================================== Public Function SheetExists(sName) As Boolean ' Returns TRUE if sheet exists in the active workbook Dim x As Object On Error Resume Next Set x = ActiveWorkbook.Sheets(sName) If Err = 0 Then SheetExists = True _ Else SheetExists = False End Function '============================================== HTH, Gary Brown -----Original Message----- HI: I'm trying to create a sub that would check for duplicate sheet tab names and pop up a msg to the user. Can anyone please tell me what the object name is for the Tab name??? thanks -- halem2 ---------------------------------------------------------- -------------- halem2's Profile: http://www.excelforum.com/member.php? action=getinfo&userid=9930 View this thread: http://www.excelforum.com/showthread...hreadid=262888 . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
2 Label Options - Forms Object vs Control Box Object | Excel Discussion (Misc queries) | |||
Object Variable Not Set Error on Selection object | Excel Worksheet Functions | |||
Range object to Array object conversion | Excel Programming | |||
Range object to Array object conversion | Excel Programming | |||
Range object to Array object conversion | Excel Programming |