Michael Ziegler
New Member
- Joined
- Jul 2, 2019
- Messages
- 8
I need to store the results of my for each If statement in the results worksheet of the active workbook.
My loop works but I need to be able to store the results in column a and c from the results worksheet
This is the code for the loop
I was thinking about something like this
Pseudocode: worksheets worksheetname column.value = cel.value and
cell.offset(0,2).value =cell.offset(0,2).value
Thanks
My loop works but I need to be able to store the results in column a and c from the results worksheet
This is the code for the loop
Code:
For Each cel In Range("A4:A85")
With cel
If (.Value Like "boston*" Or .Value Like "manfield*" Or _
.Value Like "barnes*" Or.Value Like "langley*") _
And .Offset(0, 2).Value Like "mass*" Then
MsgBox cel.Value & Chr(13) & Chr(10) & cel.Offset(0, 2).Value
I was thinking about something like this
Pseudocode: worksheets worksheetname column.value = cel.value and
cell.offset(0,2).value =cell.offset(0,2).value
Thanks