Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Take a look at what Like does in VBA's help:
then try this: Option Explicit Sub testme01() Dim cellA As Range Dim cellB As Range With Worksheets("sheet1") Set cellA = .Range("a1") Set cellB = .Range("b1") cellA.Value = "*hi*" cellB.Value = "hi" MsgBox (cellB.Value = cellA.Value) & vbLf & _ (cellB.Value Like cellA.Value) End With End Sub "H. Zhu" wrote: What difference do the following two statements make if cellA like cellB then if cellA = cellB then Thanks in advance -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
can I make cell "yes" equal 1, "no" equal 0 | Excel Discussion (Misc queries) | |||
Using = (equal) | Excel Discussion (Misc queries) | |||
CountIF(A9:A20, B9 not equal B10, B10 not equal B11, etc.) | Excel Worksheet Functions | |||
Value of Less Than Zero to Equal Zero | Excel Discussion (Misc queries) | |||
Getting 0 to equal 1 | Excel Worksheet Functions |