Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello all,
I have a problem he For each cell in my range I would like to look for this words: Some value has the word EUR and others USD. If (Intstr = Application.WorksheetFunction.Search("USD", MyCell.Value)) Then ActiveCell.Offset(0, 2).Value = Mid(MyCell.Value, 1, Intstr - 1) ElseIf (Intstr = Application.WorksheetFunction.Search("EUR", MyCell.Value)) Then ActiveCell.Offset(0, 2).Value = Mid(MyCell.Value, 1, Intstr - 1) End If I have an error here because it executes the two if and the same time. Thanks, Ina |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF Statement Problem | Excel Discussion (Misc queries) | |||
If statement problem | Excel Discussion (Misc queries) | |||
IF STATEMENT PROBLEM | Excel Worksheet Functions | |||
IF Statement problem | New Users to Excel | |||
If Statement Problem | Excel Worksheet Functions |