Av8tordude
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 1,075
- Office Version
- 2019
- Platform
- Windows
I have this code that searches a list for "Deposit". I would like to search for Deposit & Withdrawal. How can I adjust this code to accomplish this task.
Thank you kindly for your help...
Thank you kindly for your help...
Code:
Do Until Cells(RowNum, 19).Value = "" If InStr(1, Cells(RowNum, 20).Value, "Deposit", vbTextCompare) > 0 Then
Cells(SRow, 23).Value = Cells(RowNum, 19).Value
Cells(SRow, 24).Value = Cells(RowNum, 20).Value
Cells(SRow, 25).Value = Cells(RowNum, 21).Value
SRow = SRow + 1
End If
RowNum = RowNum + 1
Loop