Does anyone know how to put two conditions in an If...Then statement? It's not a ElseIf situation, I need both conditions to be true to complete the statement. Simply this is what I would like to do:
Dim i As Integer
i = 2
Do Until Worksheets("Data"
.Cells(i, 2).Value = Empty
i = i + 1
Loop
If Worksheets("Data"
.Cells(i, 1).Value =
Worksheets("Data2"
.Cells(i, 1).Value And
Worksheets("Data"
.cells(i,2).value = worksheets("data2"
.cells(i,2).value
THen
worksheets("data"
.cells(i,24)="yes"
Else
worksheets("data"
.cells(1,24)=""
End If
End Sub
THis doesn't work, and I think it has to do with the "AND" in there. What am I missing? Thanks all.
Dim i As Integer
i = 2
Do Until Worksheets("Data"
i = i + 1
Loop
If Worksheets("Data"
Worksheets("Data2"
Worksheets("Data"
THen
worksheets("data"
Else
worksheets("data"
End If
End Sub
THis doesn't work, and I think it has to do with the "AND" in there. What am I missing? Thanks all.