Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
proposedname = "Sheet1"
for each sh in worksheets if lcase(sh.name) = lcase(proposedname) then msgbox "Name is a duplicate" exit for end if Next End Sub or you can error trap. -- Regards, Tom Ogilvy "mark kubicki" wrote in message ... what function do i use to determine if a worksheet name already exists; or should i use error trapping to catch an attempt at creating a redundant worksheet name? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find value in more than 100 worksheets at once | Excel Worksheet Functions | |||
Find sum across all worksheets | Excel Worksheet Functions | |||
How can you find how many worksheets in a workbook? | Excel Discussion (Misc queries) | |||
Using a collection class to implement mutliple find/replace strings in cells | Excel Programming | |||
How to find the type of Sheet in Excel.Workbook.sheets collection | Excel Programming |