Reputation: 33
I Have a code like:
For i = 1 To fRow
ali = wbTarget.ActiveSheet.Cells(i, 14).Value
For j = 1 To fRow
If nwb.Sheets(1).Cells(j, 3).Value = ali
what exactly happens is:
Issue is:
Thank You very much!
Upvotes: 1
Views: 65
Reputation: 149325
Change
If nwb.Sheets(1).Cells(j, 3).Value = ali
To
If nwb.Sheets(1).Cells(j, 3).Value = ali Or _
nwb.Sheets(1).Cells(j, 3).Value Like ali & "*" Then
Upvotes: 2