Good Morning,
I have written some code to pull information into another sheet but it doesnt loop correctly it just over writes the first line.
can anyine help and point me in the right direction how to correct this
I have written some code to pull information into another sheet but it doesnt loop correctly it just over writes the first line.
can anyine help and point me in the right direction how to correct this
Code:
Dim SiAName As String
Dim SiFDate As String
Dim SiTDate As String
Dim Siquestion As String
Dim SiAdvocate As String
Dim SiDate As String
Dim SiAssessor As String
Dim SiScore As String
Dim SiPno As String
Dim SiPR As String
Dim SiPSR As String
Dim SiComments1T3 As String
Dim SiComments4T8 As String
Dim SiComments9T11 As String
Dim SiComments12T14 As String
Dim SiComments15T18 As String
Dim SiComments19T27 As String
Dim SiFutActions As String
Dim FoundMe As Boolean
FoundMe = False
a = 4
Do
SiAName = Sheets("SGrimshaw Manager").Cells(31, 4).Value
SiFDate = Sheets("SGrimshaw Manager").Cells(28, 4).Value
SiTDate = Sheets("SGrimshaw Manager").Cells(29, 4).Value
Siquestion = Sheets("SGrimshaw Manager").Cells(33, 4).Value
'Info from this sheet
Application.ScreenUpdating = False
Sheets("Simone Grimshaw").Select
Range("C4").Select
SiDate = Cells(a, 2) 'Date
SiAdvocate = Cells(a, 3) 'Advocate
SiAssessor = Cells(a, 4) 'Assessor
SiScore = Cells(a, 5) 'Score
SiPno = Cells(a, 6) 'Process No.
SiPR = Cells(a, 8) 'Process Reason
SiPSR = Cells(a, 9) 'Process Sub Reason
SiComments1T3 = Cells(a, 13) 'Comments 1-3
SiComments4T8 = Cells(a, 19) 'Comments 4-8
SiComments9T11 = Cells(a, 23) 'Comments 9-11
SiComments12T14 = Cells(a, 27) 'Comments 12-14
SiComments15T18 = Cells(a, 32) 'Comments 15-18
SiComments19T27 = Cells(a, 42) 'Comments 19-27
SiFutActions = Cells(a, 44) 'Agreed Actions
'Info placed on
If SiAName = SiAdvocate Then
If SiScore = Siquestion Then
FoundMe = True
Sheets("SGrimshaw Manager").Select
MyEntryRow = Find_Functions.Get_Row("Date", 2) + 1
Cells(MyEntryRow, 2) = SiDate
Cells(MyEntryRow, 3) = SiAdvocate
Cells(MyEntryRow, 5) = SiAssessor
Cells(MyEntryRow, 8) = SiScore
Cells(MyEntryRow, 12) = SiPno
Cells(MyEntryRow, 15) = SiPR
Cells(MyEntryRow, 18) = SiPSR
Cells(MyEntryRow, 23) = SiComments1T3
Cells(MyEntryRow, 28) = SiComments4T8
Cells(MyEntryRow, 29) = SiComments9T11
Cells(MyEntryRow, 30) = SiComments12T14
Cells(MyEntryRow, 31) = SiComments15T18
Cells(MyEntryRow, 32) = SiComments19T27
Cells(MyEntryRow, 33) = SiFutActions
End If
End If
b = b + 1
a = a + 1
Loop Until SiAdvocate = ""
If FoundMe = False Then
MsgBox "Unable to Find any Quality " & SiAdvocate & ". Please try Another Score .", vbOKOnly, "Score Not Found For Advocate"
End If
Application.ScreenUpdating = False
With Application
.Calculation = xlAutomatic
.MaxChange = 0.001
End With