Sub Button2_Click()
Dim Nex As Integer
If Form.Cells(F5).Value <> "" And Form.Cells(F6).Value <> "" Then
Form.Unprotect
Data.Unprotect
Application.ScreenUpdating = False
Nex = Data.Range("A1048576").End(xlUp).Row + 1
Data.Cells(Nex, 1).Value = Form.Cells(5, 6).Value
Data.Cells(Nex, 2).Value = Form.Cells(6, 6).Value
Data.Cells(Nex, 3).Value = Form.Cells(7, 6).Value
Data.Cells(Nex, 4).Value = Form.Cells(7, 9).Value
Data.Cells(Nex, 5).Value = Form.Cells(8, 6).Value
Data.Cells(Nex, 6).Value = Form.Cells(9, 6).Value
Data.Cells(Nex, 7).Value = Form.Cells(10, 12).Value
Data.Cells(Nex, 8).Value = Form.Cells(11, 12).Value
Data.Cells(Nex, 9).Value = Form.Cells(13, 12).Value
Data.Cells(Nex, 10).Value = Form.Cells(15, 5).Value
Data.Cells(Nex, 11).Value = Form.Cells(16, 5).Value
Data.Cells(Nex, 12).Value = Form.Cells(15, 12).Value
Data.Cells(Nex, 13).Value = Form.Cells(16, 12).Value
Data.Cells(Nex, 14).Value = Form.Cells(19, 5).Value
Data.Cells(Nex, 15).Value = Form.Cells(20, 5).Value
Data.Cells(Nex, 16).Value = Form.Cells(19, 12).Value
Data.Cells(Nex, 17).Value = Form.Cells(20, 12).Value
Data.Cells(Nex, 18).Value = Form.Cells(22, 6).Value
Data.Cells(Nex, 19).Value = Form.Cells(23, 12).Value
Data.Cells(Nex, 20).Value = Form.Cells(24, 12).Value
Data.Cells(Nex, 21).Value = Form.Cells(25, 6).Value
Data.Cells(Nex, 22).Value = Form.Cells(26, 6).Value
Data.Cells(Nex, 23).Value = Form.Cells(29, 6).Value
Data.Cells(Nex, 24).Value = Form.Cells(31, 12).Value
Data.Cells(Nex, 25).Value = Form.Cells(32, 6).Value
Data.Cells(Nex, 26).Value = Form.Cells(34, 12).Value
Data.Cells(Nex, 27).Value = Form.Cells(35, 6).Value
Data.Cells(Nex, 28).Value = Form.Cells(37, 6).Value
Data.Cells(Nex, 29).Value = Form.Cells(38, 12).Value
Data.Cells(Nex, 30).Value = Form.Cells(40, 12).Value
Data.Cells(Nex, 31).Value = Form.Cells(43, 6).Value
Data.Cells(Nex, 32).Value = Form.Cells(44, 6).Value
Data.Cells(Nex, 33).Value = Form.Cells(45, 6).Value
Data.Cells(Nex, 34).Value = Form.Cells(46, 6).Value
Data.Cells(Nex, 35).Value = Form.Cells(49, 4).Value
Data.Cells(Nex, 36).Value = Form.Cells(49, 9).Value
Data.Cells(Nex, 37).Value = Form.Cells(49, 14).Value
Data.Cells(Nex, 38).Value = Form.Cells(52, 12).Value
Data.Cells(Nex, 39).Value = Form.Cells(53, 12).Value
Data.Cells(Nex, 40).Value = Form.Cells(54, 12).Value
Data.Cells(Nex, 41).Value = Form.Cells(57, 12).Value
Data.Cells(Nex, 42).Value = Form.Cells(58, 12).Value
Data.Cells(Nex, 43).Value = Form.Cells(59, 12).Value
Data.Cells(Nex, 44).Value = Form.Cells(60, 12).Value
Data.Cells(Nex, 45).Value = Form.Cells(61, 12).Value
Data.Cells(Nex, 46).Value = Form.Cells(64, 6).Value
Data.Cells(Nex, 47).Value = Form.Cells(65, 12).Value
Data.Cells(Nex, 48).Value = Form.Cells(66, 6).Value
Data.Cells(Nex, 49).Value = Form.Cells(66, 10).Value
Data.Cells(Nex, 50).Value = Form.Cells(67, 6).Value
Data.Cells(Nex, 51).Value = Form.Cells(70, 12).Value
Data.Cells(Nex, 52).Value = Form.Cells(72, 12).Value
Data.Cells(Nex, 53).Value = Form.Cells(82, 12).Value
Data.Cells(Nex, 54).Value = Form.Cells(84, 12).Value
Data.Cells(Nex, 55).Value = Form.Cells(85, 12).Value
Data.Cells(Nex, 56).Value = Form.Cells(86, 12).Value
Data.Cells(Nex, 57).Value = Form.Cells(88, 12).Value
Data.Cells(Nex, 58).Value = Form.Cells(89, 12).Value
Data.Cells(Nex, 59).Value = Form.Cells(92, 12).Value
Data.Cells(Nex, 60).Value = Form.Cells(93, 12).Value
Data.Cells(Nex, 61).Value = Form.Cells(96, 12).Value
Data.Cells(Nex, 62).Value = Form.Cells(98, 12).Value
Data.Cells(Nex, 63).Value = Form.Cells(109, 12).Value
Data.Cells(Nex, 64).Value = Form.Cells(111, 12).Value
Data.Cells(Nex, 65).Value = Form.Cells(112, 12).Value
Data.Cells(Nex, 66).Value = Form.Cells(114, 12).Value
Data.Cells(Nex, 67).Value = Form.Cells(116, 12).Value
Data.Cells(Nex, 68).Value = Form.Cells(117, 12).Value
Data.Cells(Nex, 69).Value = Form.Cells(118, 12).Value
Form.Cells(5, 6).Value = ""
Form.Cells(6, 6).Value = ""
Form.Cells(7, 6).Value = ""
Form.Cells(7, 9).Value = ""
Form.Cells(8, 6).Value = ""
Form.Cells(9, 6).Value = ""
Form.Cells(10, 12).Value = ""
Form.Cells(11, 12).Value = ""
Form.Cells(13, 12).Value = ""
Form.Cells(15, 5).Value = ""
Form.Cells(16, 5).Value = ""
Form.Cells(15, 12).Value = ""
Form.Cells(16, 12).Value = ""
Form.Cells(19, 5).Value = ""
Form.Cells(20, 5).Value = ""
Form.Cells(19, 12).Value = ""
Form.Cells(20, 12).Value = ""
Form.Cells(22, 6).Value = ""
Form.Cells(23, 12).Value = ""
Form.Cells(24, 12).Value = ""
Form.Cells(25, 6).Value = ""
Form.Cells(26, 6).Value = ""
Form.Cells(29, 6).Value = ""
Form.Cells(31, 12).Value = ""
Form.Cells(32, 6).Value = ""
Form.Cells(34, 12).Value = ""
Form.Cells(35, 6).Value = ""
Form.Cells(37, 6).Value = ""
Form.Cells(38, 12).Value = ""
Form.Cells(40, 12).Value = ""
Form.Cells(43, 6).Value = ""
Form.Cells(44, 6).Value = ""
Form.Cells(45, 6).Value = ""
Form.Cells(46, 6).Value = ""
Form.Cells(49, 4).Value = ""
Form.Cells(49, 9).Value = ""
Form.Cells(49, 14).Value = ""
Form.Cells(52, 12).Value = ""
Form.Cells(53, 12).Value = ""
Form.Cells(54, 12).Value = ""
Form.Cells(57, 12).Value = ""
Form.Cells(58, 12).Value = ""
Form.Cells(59, 12).Value = ""
Form.Cells(60, 12).Value = ""
Form.Cells(61, 12).Value = ""
Form.Cells(64, 6).Value = ""
Form.Cells(65, 12).Value = ""
Form.Cells(66, 6).Value = ""
Form.Cells(66, 10).Value = ""
Form.Cells(67, 6).Value = ""
Form.Cells(70, 12).Value = ""
Form.Cells(72, 12).Value = ""
Form.Cells(82, 12).Value = ""
Form.Cells(84, 12).Value = ""
Form.Cells(85, 12).Value = ""
Form.Cells(86, 12).Value = ""
Form.Cells(88, 12).Value = ""
Form.Cells(89, 12).Value = ""
Form.Cells(92, 12).Value = ""
Form.Cells(93, 12).Value = ""
Form.Cells(96, 12).Value = ""
Form.Cells(98, 12).Value = ""
Form.Cells(109, 12).Value = ""
Form.Cells(111, 12).Value = ""
Form.Cells(112, 12).Value = ""
Form.Cells(114, 12).Value = ""
Form.Cells(116, 12).Value = ""
Form.Cells(117, 12).Value = ""
Form.Cells(118, 12).Value = ""
Data.Protect
Form.Protect
Data.Activate
Application.ScreenUpdating = True
MsgBox "Your data has successfully been submitted!", vbOKOnly, "Success!"
Else
MsgBox "Please ensure that the Date of MDT Review & the local identifier has been completed before trying to submit the data.", vbOKOnly + vbCritical, "Error: Required Fields Missing"
Exit Sub
End If
End Sub