Hi all,
Having an issue running code. Is there any way to shrink down this data so excel can run it?
Sorry its lengthy.
Having an issue running code. Is there any way to shrink down this data so excel can run it?
Sorry its lengthy.
VBA Code:
Private Sub SUBMITbt_Click()
Dim objWorkbook As Workbook
'open the workbook with data
Set objWorkbook = Workbooks.Open( _
"H:\RECORD\MATRIX\matrix.xls")
Worksheets("Current").Activate
Dim Day As String
Dim Name As String
Dim nameFound As Boolean
Dim dayFound As Boolean
Dim nameAddress As Integer
Dim dayAddress As Integer
Name = Textbox2.value
Day = TextBox12.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = Textbox2.value
Day = TextBox13.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = Textbox2.value
Day = TextBox17.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = Textbox2.value
Day = TextBox16.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = Textbox2.value
Day = TextBox15.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = Textbox2.value
Day = TextBox14.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = Textbox2.value
Day = TextBox18.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = Textbox2.value
Day = TextBox19.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = Textbox2.value
Day = TextBox11.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox3.value
Day = TextBox12.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox3.value
Day = TextBox13.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox3.value
Day = TextBox17.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox3.value
Day = TextBox16.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox3.value
Day = TextBox15.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox3.value
Day = TextBox14.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox3.value
Day = TextBox18.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox3.value
Day = TextBox19.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox3.value
Day = TextBox11.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox7.value
Day = TextBox12.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox7.value
Day = TextBox13.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox7.value
Day = TextBox17.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox7.value
Day = TextBox16.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox7.value
Day = TextBox15.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox7.value
Day = TextBox14.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox7.value
Day = TextBox18.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox7.value
Day = TextBox19.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox7.value
Day = TextBox11.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox6.value
Day = TextBox12.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox6.value
Day = TextBox13.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox6.value
Day = TextBox17.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox6.value
Day = TextBox16.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox6.value
Day = TextBox15.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox6.value
Day = TextBox14.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox6.value
Day = TextBox18.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox6.value
Day = TextBox19.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox6.value
Day = TextBox11.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox5.value
Day = TextBox12.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox5.value
Day = TextBox13.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox5.value
Day = TextBox17.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox5.value
Day = TextBox16.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox5.value
Day = TextBox15.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox5.value
Day = TextBox14.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox5.value
Day = TextBox18.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox5.value
Day = TextBox19.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox5.value
Day = TextBox11.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox4.value
Day = TextBox12.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox4.value
Day = TextBox13.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox4.value
Day = TextBox17.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox4.value
Day = TextBox16.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox4.value
Day = TextBox15.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox4.value
Day = TextBox14.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox4.value
Day = TextBox18.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox4.value
Day = TextBox19.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox4.value
Day = TextBox11.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox8.value
Day = TextBox12.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox8.value
Day = TextBox13.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox8.value
Day = TextBox17.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox8.value
Day = TextBox16.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox8.value
Day = TextBox15.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox8.value
Day = TextBox14.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox8.value
Day = TextBox18.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox8.value
Day = TextBox19.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox8.value
Day = TextBox11.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox9.value
Day = TextBox12.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox9.value
Day = TextBox13.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox9.value
Day = TextBox17.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox9.value
Day = TextBox16.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox9.value
Day = TextBox15.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox9.value
Day = TextBox14.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox9.value
Day = TextBox18.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox9.value
Day = TextBox19.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox9.value
Day = TextBox11.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox10.value
Day = TextBox12.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox10.value
Day = TextBox13.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox10.value
Day = TextBox17.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox10.value
Day = TextBox16.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox10.value
Day = TextBox15.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox10.value
Day = TextBox14.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox10.value
Day = TextBox18.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox10.value
Day = TextBox19.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value
'
Name = TextBox10.value
Day = TextBox11.value
Range("A6").Select
nameFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Name Then
nameFound = True
Exit Do
End If
ActiveCell.Offset(1, 0).Select
Loop
If nameFound = True Then
nameAddress = ActiveCell.Row
Else
MsgBox "Name not found"
End If
Range("F1,G1,H1,I1,J1,K1,M1,N1,O1,P1,Q1,R1,S1,T1,U1,V1,W1,X1,Y1,Z1,AA1,AB1,AC1,AD1,AE1,AF1,AG1,AH1,AI1,AJ1,AK1,AL1,AM1,AN1,AO1,AP1,AQ1,AR1,AS1,AT1,AU1,AV1,AW1,AX1,AY1,AZ1,BA1,BB1").Select
dayFound = False
Do Until IsEmpty(ActiveCell)
If ActiveCell.value = Day Then
dayFound = True
Exit Do
End If
ActiveCell.Offset(0, 1).Select
Loop
If dayFound = True Then
dayAddress = ActiveCell.Column
Else
MsgBox "Day not found"
End If
Cells(nameAddress, dayAddress).Select
ActiveCell = DTPicker1.value