Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Auric__ pretended :
GS wrote: Auric__ laid this down on his screen : GS wrote: You might want to get into the habit of specifying a value since InStr can result unexpected behavior if you assume it's return value is equal to vbFalse... If InStr(rngC, "Milka") 0 Then I generally just go by the old standby, "0 is false, anything else is true." It's been working for ~29 years now... That's safe in VB but VBA will bite you with that assumption! Clarify please? I have several places where I use InStr(x, y) as an implied boolean value, and have never noticed a problem. I can't give you explicit examples because I stopped using it as an "implied boolean" after several occasions where it just didn't work as assumed. So if you haven't encountered any gliches then you've been lucky so far. Many others have not! -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copying text on sheet 1 to corresponding cells on sheets 2 to 5 | New Users to Excel | |||
copying data from text file to excel sheet | Excel Programming | |||
Copying cells from on sheet to another sheet (via sheet module) | Excel Programming | |||
Long Text in merged cells not copying correctly with sheet | Excel Programming | |||
Copying text from a text box into a cell on another sheet | Excel Programming |