S
steveski
I know this code is wrong, but I’m still a rookie, only slightly mor
skilled than when I joined.
This code resides in a sheet called “TAT by Priority”, but I’m tryin
to poll a different sheet in the same workbook called “Data Entry”. Ho
can I get pointed to the “Data Entry” sheet before executing th
For/Next Loop?
Worksheets("Data Entry").Cells ("PTSource")
LastRow = ActiveSheet.UsedRange.Rows.Count
For i = 1 To LastRow
If Cells(i, 9).Value Then 'start flag is true
If Cells(i, 8).Value = "E" Then
c1 = c1 + 1
ElseIf Cells(i, 8).Value = "O" Then
c2 = c2 + 1
End If
End If
Next
skilled than when I joined.
This code resides in a sheet called “TAT by Priority”, but I’m tryin
to poll a different sheet in the same workbook called “Data Entry”. Ho
can I get pointed to the “Data Entry” sheet before executing th
For/Next Loop?
Worksheets("Data Entry").Cells ("PTSource")
LastRow = ActiveSheet.UsedRange.Rows.Count
For i = 1 To LastRow
If Cells(i, 9).Value Then 'start flag is true
If Cells(i, 8).Value = "E" Then
c1 = c1 + 1
ElseIf Cells(i, 8).Value = "O" Then
c2 = c2 + 1
End If
End If
Next