Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Something like this works comparing values in A1 and A2
Sub StrComp() Dim myString As String Dim ans As Boolean myString = Range("A1").Value ans = InStr(1, myString, Range("A2")) MsgBox ans End Sub -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England www.nickhodge.co.uk HIS "cjsmith22" wrote in message ... is there any way to extract whatever string is in a particular cell in order to then compare that string with strings in cells in other ranges? -- cjsmith22 ------------------------------------------------------------------------ cjsmith22's Profile: http://www.excelforum.com/member.php...o&userid=28528 View this thread: http://www.excelforum.com/showthread...hreadid=482151 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Extracting elements of a string cell | Excel Worksheet Functions | |||
Extracting Data from a string of text in a cell | Excel Worksheet Functions | |||
Extracting a string | Excel Discussion (Misc queries) | |||
Extracting from a text string | Excel Worksheet Functions | |||
extracting string from value in cell | Excel Programming |