Re: Can we use "*" to replace string in VBA excel macros ?
From: Tomek (tomolder28_at_gazeta.pl)
Date: 02/12/05
- Next message: Jim Cone: "Re: Combo box"
- Previous message: Glen Mettler: "Range Names - help"
- In reply to: Tom Ogilvy: "Re: Can we use "*" to replace string in VBA excel macros ?"
- Next in thread: Tom Ogilvy: "Re: Can we use "*" to replace string in VBA excel macros ?"
- Reply: Tom Ogilvy: "Re: Can we use "*" to replace string in VBA excel macros ?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 12 Feb 2005 16:58:45 +0100
Tom Ogilvy wrote:
> The example I gave would produce where the string is found. As long as it
> isn't zero, you would copy. I am not sure why you can't make it. The
> example needs no interpretation - When the condition is passed, you copy.
>
>
I tried something like below but I do not know why it dosn't work
Sub proba2()
If InStr(1, "A1", "B1", vbTextCompare) > 0 Then
ActiveCell.Offset(10, 0).Activate
End If
End Sub
in cell A1 I had string "very big car"
in cell B1 I had string "big"
-- Tomek
- Next message: Jim Cone: "Re: Combo box"
- Previous message: Glen Mettler: "Range Names - help"
- In reply to: Tom Ogilvy: "Re: Can we use "*" to replace string in VBA excel macros ?"
- Next in thread: Tom Ogilvy: "Re: Can we use "*" to replace string in VBA excel macros ?"
- Reply: Tom Ogilvy: "Re: Can we use "*" to replace string in VBA excel macros ?"
- Messages sorted by: [ date ] [ thread ]