Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Checking if a property contains another specific string
I am trying to see if a defined name's RefersTo property contains a
particular string. To be more specific, I am going through the defined names in the workbook and checking if any of them are pointing to a particular file path or a worksheet. Any pointers would be appreciated. Jay |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Checking if a property contains another specific string
for each nm in activeworkbook.names
if instr(1,nm.Refersto,"book1.xls",vbTextcompare) then msgbox nm.name & " " & nm.Refersto end if Next -- regards, Tom Ogilvy "hugehead" wrote: I am trying to see if a defined name's RefersTo property contains a particular string. To be more specific, I am going through the defined names in the workbook and checking if any of them are pointing to a particular file path or a worksheet. Any pointers would be appreciated. Jay |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
checking for a string & No. | Excel Worksheet Functions | |||
Checking HasPassword property without opening | Excel Programming | |||
Checking string | Excel Programming | |||
Spell Checking a String | Excel Programming | |||
Checking the value of the end of a string | Excel Programming |