Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to use the Find method in VBA to identify whether a cell contains
a phrase (in this case "_SHARE") such that if it does a specific piece of code is run. I am using the following code: With Sheets("CHART_SHEET").Range("b63") Set C = .Find("_SHARE", LookIn:=xlValues, LookAt:=xlPart) End With If Not C Is Nothing Then GoSub 3000 However, even when cell b63 has "_SHARE" as part of its value, this still returns c as equal to Nothing. One other point that may be relevant is that the cell b63 is based on a vlookup function. Thanks in advance, Ian |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find Method problem in Excel VBA.... | Excel Worksheet Functions | |||
Problem with Find Method | Excel Programming | |||
Problem with the FIND method looking for dates. | Excel Programming | |||
Problem with find method | Excel Programming | |||
range.find method called into a VBA function (problem) | Excel Programming |