Sub Graphic2_Click()
'This section checks the income templates to see which income docs to load from the Master to the Doc Checklist:
Dim Bor1 As String
Dim Bor2 As String
Dim Bor3 As String
Dim Bor4 As String
Dim Wage1 As Range
Dim Wage2 As Range
Dim Wage3 As Range
Dim Wage4 As Range
Dim Self As Range
Dim Fixed1 As Range
Dim Fixed2 As Range
Dim Fixed3 As Range
Dim LstRow1 As Integer
Dim LstRow2 As Integer
Dim LstRow3 As Integer
Dim LstRow4 As Integer
With Worksheets("Master")
.Range("D2:D100").ClearContents
Set Wage1 = Sheets("Master").Range(Sheets("Master").Range("B3").Value)
Application.Goto Wage1
Wage1.Select
Set Self = Sheets("Master").Range(Sheets("Master").Range("B7").Value)
Wage1.Select
Set Fixed1 = Sheets("Master").Range(Sheets("Master").Range("B8").Value)
Wage1.Select
Set Fixed2 = Sheets("Master").Range(Sheets("Master").Range("B9").Value)
Wage1.Select
Set Fixed3 = Sheets("Master").Range(Sheets("Master").Range("B10").Value)
Wage1.Select
End With
With Worksheets("Doc Request")
Bor1 = .Range("B3").Value
Bor2 = .Range("C3").Value
Bor3 = .Range("D3").Value
Bor4 = .Range("E3").Value
Debug.Print Bor1
Debug.Print Bor2
Debug.Print Bor3
Debug.Print Bor4
End With
'*******************************************************************************************
'******** ADDING BORROWER INCOME DOC TEMPLATES
'*******************************************************************************************
'BORROWER 1
'Activate Bor 1 for all Template Docs
Sheets("Master").Range("E2:E100") = Bor1
Sheets("Master").Range("D2:D100").ClearContents
With Worksheets("Doc Checklist")
LstRow1 = .Range("D" & .Rows.Count).End(xlUp).Row + 1
End With
Debug.Print LstRow1
'Add Checkmarks for Bor 1 Template
With Sheets("Doc Request")
If .Range("B4").Value2 = "x" Then Wage1 = "x"
If .Range("B5").Value2 = "x" Then Wage1 = "x"
If .Range("B6").Value2 = "x" Then Wage1 = "x"
If .Range("B7").Value2 = "x" Then Wage1 = "x"
If .Range("B8").Value2 = "x" Then Self = "x"
If .Range("B9").Value2 = "x" Then Fixed1 = "x"
If .Range("B10").Value2 = "x" Then Fixed2 = "x"
If .Range("B11").Value2 = "x" Then Fixed3 = "x"
End With
'Copy the concatenated Income Doc to the Doc Checklist
With Sheets("Master").Range("D2:D100").SpecialCells(xlConstants)
.Offset(, 7).Copy
Sheets("Doc Checklist").Range("D" & LstRow1).PasteSpecial Paste:=xlPasteValues
End With
Debug.Print LstRow1
'BORROWER 2
'Activate Bor 2 for all Template Docs
Sheets("Master").Range("E2:E100") = Bor2
Sheets("Master").Range("D2:D100").ClearContents
With Worksheets("Doc Checklist")
LstRow2 = .Range("D" & .Rows.Count).End(xlUp).Row + 1
End With
Debug.Print LstRow2
'Add Checkmarks for Bor 1 Template
With Sheets("Doc Request")
If .Range("C4").Value2 = "x" Then Wage1 = "x"
If .Range("C5").Value2 = "x" Then Wage1 = "x"
If .Range("C6").Value2 = "x" Then Wage1 = "x"
If .Range("C7").Value2 = "x" Then Wage1 = "x"
If .Range("C8").Value2 = "x" Then Self = "x"
If .Range("C9").Value2 = "x" Then Fixed1 = "x"
If .Range("C10").Value2 = "x" Then Fixed2 = "x"
If .Range("C11").Value2 = "x" Then Fixed3 = "x"
End With
'Copy the concatenated Income Doc to the Doc Checklist
With Sheets("Master").Range("D2:D100").SpecialCells(xlConstants)
.Offset(, 7).Copy
Sheets("Doc Checklist").Range("D" & LstRow2).PasteSpecial Paste:=xlPasteValues
End With
'BORROWER 3
'Activate Bor 3 for all Template Docs
Sheets("Master").Range("E2:E100") = Bor3
Sheets("Master").Range("D2:D100").ClearContents
With Worksheets("Doc Checklist")
LstRow3 = .Range("D" & .Rows.Count).End(xlUp).Row + 1
End With
Debug.Print LstRow3
'Add Checkmarks for Bor 3 Template
With Sheets("Doc Request")
If .Range("D4").Value2 = "x" Then Wage1 = "x"
If .Range("D5").Value2 = "x" Then Wage1 = "x"
If .Range("D6").Value2 = "x" Then Wage1 = "x"
If .Range("D7").Value2 = "x" Then Wage1 = "x"
If .Range("D8").Value2 = "x" Then Self = "x"
If .Range("D9").Value2 = "x" Then Fixed1 = "x"
If .Range("D10").Value2 = "x" Then Fixed2 = "x"
If .Range("D11").Value2 = "x" Then Fixed3 = "x"
End With
'Copy the concatenated Income Doc to the Doc Checklist
With Sheets("Master").Range("D2:D100").SpecialCells(xlConstants)
.Offset(, 7).Copy
Sheets("Doc Checklist").Range("D" & LstRow3).PasteSpecial Paste:=xlPasteValues
End With
'BORROWER 4
'Activate Bor 4 for all Template Docs
Sheets("Master").Range("E2:E100") = Bor4
Sheets("Master").Range("D2:D100").ClearContents
With Worksheets("Doc Checklist")
LstRow4 = .Range("D" & .Rows.Count).End(xlUp).Row + 1
End With
Debug.Print LstRow4
'Add Checkmarks for Bor 4 Template
With Sheets("Doc Request")
If .Range("E4").Value2 = "x" Then Wage1 = "x"
If .Range("E5").Value2 = "x" Then Wage1 = "x"
If .Range("E6").Value2 = "x" Then Wage1 = "x"
If .Range("E7").Value2 = "x" Then Wage1 = "x"
If .Range("E8").Value2 = "x" Then Self = "x"
If .Range("E9").Value2 = "x" Then Fixed1 = "x"
If .Range("E10").Value2 = "x" Then Fixed2 = "x"
If .Range("E11").Value2 = "x" Then Fixed3 = "x"
End With
'Copy the concatenated Income Doc to the Doc Checklist
With Sheets("Master").Range("D2:D100").SpecialCells(xlConstants)
.Offset(, 7).Copy
Sheets("Doc Checklist").Range("D" & LstRow4).PasteSpecial Paste:=xlPasteValues
End With
'*****************************************************************************************************************
'********* THAT IS THE END OF ADDING THE INCOME TEMPLATES
'*****************************************************************************************************************
With Sheets("Doc Checklist")
.Range("C2:C500").Sort Key1:=.Range("C2"), Order1:=xlAscending, Header:=xlNo
End With
Worksheets("Doc Checklist").Range("D2:D100").Copy Worksheets("Doc Request").Range("I4:I100")
Worksheets("Doc Request").Activate
Worksheets("Doc Request").Range("A1").Select
MsgBox ("Income Templates Have Been Loaded")
End Sub