VBA Code:
If Tex1 <> "" Then
Application.ScreenUpdating = False
On Error Resume Next
With ThisWorkbook.Sheets("statment")
.Range("d8").Value = Tex1.Value
.Range("d9").Value = Tex2.Value
.Range("d10").Value = Tex3.Value
.Range("d11").Value = Tex4.Value
.Range("h8").Value = Tex5.Value
.Range("h9").Value = Tex6.Value
.Range("h10").Value = Tex7.Value
.Range("h11").Value = Tex8.Value
.Range("p8").Value = Tex9.Value
.Range("p9").Value = Tex10.Value
.Range("l8").Value = Tex11.Value
.Range("l9").Value = Tex12.Value
.Range("l10").Value = Tex13.Value
.Range("p10").Value = Tex14.Value
.Range("p11").Value = Tex15.Value
.Range("l11").Value = Tex16.Value
.Range("d12").Value = Tex17.Value
.Range("d13").Value = Tex18.Value
.Range("d14").Value = Tex19.Value
.Range("l12").Value = Tex20.Value
.Range("p12").Value = Tex21.Value
'...........................................
.Range("s8").Value = Tex22.Value
.Range("s9").Value = Tex23.Value
.Range("s10").Value = Tex24.Value
.Range("s11").Value = Tex25.Value
.Range("s12").Value = Tex26.Value
.Range("s13").Value = Tex27.Value
.Range("s14").Value = Tex28.Value
'...........................................
.Range("l13").Value = Tex29.Value
'.Range("").Value = Tex30.Value
'.Range("").Value = Tex31.Value
'.Range("").Value = Tex32.Value
'.Range("").Value = Tex33.Value
'.Range("").Value = Tex34.Value
.Range("l15").Value = Tex35.Value
.Range("m15").Value = Tex36.Value
.Range("n15").Value = Tex37.Value
'...........................................
.Range("b17").Value = Tex38.Value
.Range("c17").Value = Tex39.Value
'...........................................
.Range("g17").Value = Tex40.Value
.Range("h17").Value = Tex41.Value
.Range("i17").Value = Tex42.Value
.Range("j17").Value = Tex43.Value
.Range("k17").Value = Tex44.Value
.Range("l17").Value = Tex45.Value
.Range("m17").Value = Tex46.Value
.Range("n17").Value = Tex47.Value
.Range("o17").Value = Tex48.Value
.Range("p17").Value = Tex49.Value
.Range("q17").Value = Tex50.Value
.Range("r17").Value = Tex51.Value
.Range("s17").Value = Tex52.Value
'...........................................
.Range("b18").Value = Tex53.Value
.Range("c18").Value = Tex54.Value
'...........................................
.Range("g18").Value = Tex55.Value
.Range("h18").Value = Tex56.Value
.Range("i18").Value = Tex57.Value
.Range("j18").Value = Tex58.Value
.Range("k18").Value = Tex59.Value
.Range("l18").Value = Tex60.Value
.Range("m18").Value = Tex61.Value
.Range("n18").Value = Tex62.Value
.Range("o18").Value = Tex63.Value
.Range("p18").Value = Tex64.Value
.Range("q18").Value = Tex65.Value
.Range("r18").Value = Tex66.Value
.Range("s18").Value = Tex67.Value
'...........................................
.Range("b19").Value = Tex68.Value
.Range("c19").Value = Tex69.Value
'...........................................
.Range("g19").Value = Tex70.Value
.Range("h19").Value = Tex71.Value
.Range("i19").Value = Tex72.Value
.Range("j19").Value = Tex73.Value
.Range("k19").Value = Tex74.Value
.Range("l19").Value = Tex75.Value
.Range("m19").Value = Tex76.Value
.Range("n19").Value = Tex77.Value
.Range("o19").Value = Tex78.Value
.Range("p19").Value = Tex79.Value
.Range("q19").Value = Tex80.Value
.Range("r19").Value = Tex81.Value
.Range("s19").Value = Tex82.Value
'...........................................
.Range("b20").Value = Tex83.Value
.Range("c20").Value = Tex84.Value
'...........................................
.Range("g20").Value = Tex85.Value
.Range("h20").Value = Tex86.Value
.Range("i20").Value = Tex87.Value
.Range("j20").Value = Tex88.Value
.Range("k20").Value = Tex89.Value
.Range("l20").Value = Tex90.Value
.Range("m20").Value = Tex91.Value
.Range("n20").Value = Tex92.Value
.Range("o20").Value = Tex93.Value
.Range("p20").Value = Tex94.Value
.Range("q20").Value = Tex95.Value
.Range("r20").Value = Tex96.Value
.Range("s20").Value = Tex97.Value
'...........................................
.Range("b21").Value = Tex98.Value
.Range("c21").Value = Tex99.Value
'...........................................
.Range("g21").Value = Tex100.Value
.Range("h21").Value = Tex101.Value
.Range("i21").Value = Tex102.Value
.Range("j21").Value = Tex103.Value
.Range("k21").Value = Tex104.Value
.Range("l21").Value = Tex105.Value
.Range("m21").Value = Tex106.Value
.Range("n21").Value = Tex107.Value
.Range("o21").Value = Tex108.Value
.Range("p21").Value = Tex109.Value
.Range("q21").Value = Tex110.Value
.Range("r21").Value = Tex111.Value
.Range("s21").Value = Tex112.Value
'...........................................
.Range("b22").Value = Tex113.Value
.Range("c22").Value = Tex114.Value
'...........................................
.Range("g22").Value = Tex115.Value
.Range("h22").Value = Tex116.Value
.Range("i22").Value = Tex117.Value
.Range("j22").Value = Tex118.Value
.Range("k22").Value = Tex119.Value
.Range("l22").Value = Tex120.Value
.Range("m22").Value = Tex121.Value
.Range("n22").Value = Tex122.Value
.Range("o22").Value = Tex123.Value
.Range("p22").Value = Tex124.Value
.Range("q22").Value = Tex125.Value
.Range("r22").Value = Tex126.Value
.Range("s22").Value = Tex127.Value
'...........................................
.Range("b23").Value = Tex128.Value
.Range("c23").Value = Tex129.Value
'...........................................
.Range("g23").Value = Tex130.Value
.Range("h23").Value = Tex131.Value
.Range("i23").Value = Tex132.Value
.Range("j23").Value = Tex133.Value
.Range("k23").Value = Tex134.Value
.Range("l23").Value = Tex135.Value
.Range("m23").Value = Tex136.Value
.Range("n23").Value = Tex137.Value
.Range("o23").Value = Tex138.Value
.Range("p23").Value = Tex139.Value
.Range("q23").Value = Tex140.Value
.Range("r23").Value = Tex141.Value
.Range("s23").Value = Tex142.Value
'...........................................
.Range("b24").Value = Tex143.Value
.Range("c24").Value = Tex144.Value
'...........................................
.Range("g24").Value = Tex145.Value
.Range("h24").Value = Tex146.Value
.Range("i24").Value = Tex147.Value
.Range("j24").Value = Tex148.Value
.Range("k24").Value = Tex149.Value
.Range("l24").Value = Tex150.Value
.Range("m24").Value = Tex151.Value
.Range("n24").Value = Tex152.Value
.Range("o24").Value = Tex153.Value
.Range("p24").Value = Tex154.Value
.Range("q24").Value = Tex155.Value
.Range("r24").Value = Tex156.Value
.Range("s24").Value = Tex157.Value
'...........................................
.Range("b25").Value = Tex158.Value
.Range("c25").Value = Tex159.Value
'...........................................
.Range("g25").Value = Tex160.Value
.Range("h25").Value = Tex161.Value
.Range("i25").Value = Tex162.Value
.Range("j25").Value = Tex163.Value
.Range("k25").Value = Tex164.Value
.Range("l25").Value = Tex165.Value
.Range("m25").Value = Tex166.Value
.Range("n25").Value = Tex167.Value
.Range("o25").Value = Tex168.Value
.Range("p25").Value = Tex169.Value
.Range("q25").Value = Tex170.Value
.Range("r25").Value = Tex171.Value
.Range("s25").Value = Tex172.Value
'...........................................
.Range("b26").Value = Tex173.Value
.Range("c26").Value = Tex174.Value
'...........................................
.Range("g26").Value = Tex175.Value
.Range("h26").Value = Tex176.Value
.Range("i26").Value = Tex177.Value
.Range("j26").Value = Tex178.Value
.Range("k26").Value = Tex179.Value
.Range("l26").Value = Tex180.Value
.Range("m26").Value = Tex181.Value
.Range("n26").Value = Tex182.Value
.Range("o26").Value = Tex183.Value
.Range("p26").Value = Tex184.Value
.Range("q26").Value = Tex185.Value
.Range("r26").Value = Tex186.Value
.Range("s26").Value = Tex187.Value
'...........................................
.Range("b27").Value = Tex188.Value
.Range("c27").Value = Tex189.Value
'...........................................
.Range("g27").Value = Tex190.Value
.Range("h27").Value = Tex191.Value
.Range("i27").Value = Tex192.Value
.Range("j27").Value = Tex193.Value
.Range("k27").Value = Tex194.Value
.Range("l27").Value = Tex195.Value
.Range("m27").Value = Tex196.Value
.Range("n27").Value = Tex197.Value
.Range("o27").Value = Tex198.Value
.Range("p27").Value = Tex199.Value
.Range("q27").Value = Tex200.Value
.Range("r27").Value = Tex201.Value
.Range("s27").Value = Tex202.Value
'...........................................
.Range("b28").Value = Tex203.Value
.Range("c28").Value = Tex204.Value
'...........................................
.Range("g28").Value = Tex205.Value
.Range("h28").Value = Tex206.Value
.Range("i28").Value = Tex207.Value
.Range("j28").Value = Tex208.Value
.Range("k28").Value = Tex209.Value
.Range("l28").Value = Tex210.Value
.Range("m28").Value = Tex211.Value
.Range("n28").Value = Tex212.Value
.Range("o28").Value = Tex213.Value
.Range("p28").Value = Tex214.Value
.Range("q28").Value = Tex215.Value
.Range("r28").Value = Tex216.Value
.Range("s28").Value = Tex217.Value
'...........................................
.Range("b29").Value = Tex218.Value
.Range("c29").Value = Tex219.Value
'...........................................
.Range("g29").Value = Tex220.Value
.Range("h29").Value = Tex221.Value
.Range("i29").Value = Tex222.Value
.Range("j29").Value = Tex223.Value
.Range("k29").Value = Tex224.Value
.Range("l29").Value = Tex225.Value
.Range("m29").Value = Tex226.Value
.Range("n29").Value = Tex227.Value
.Range("o29").Value = Tex228.Value
.Range("p29").Value = Tex229.Value
.Range("q29").Value = Tex230.Value
.Range("r29").Value = Tex231.Value
.Range("s29").Value = Tex232.Value
'...........................................
.Range("b30").Value = Tex233.Value
.Range("c30").Value = Tex234.Value
'...........................................
.Range("g30").Value = Tex235.Value
.Range("h30").Value = Tex236.Value
.Range("i30").Value = Tex237.Value
.Range("j30").Value = Tex238.Value
.Range("k30").Value = Tex239.Value
.Range("l30").Value = Tex240.Value
.Range("m30").Value = Tex241.Value
.Range("n30").Value = Tex242.Value
.Range("o30").Value = Tex243.Value
.Range("p30").Value = Tex244.Value
.Range("q30").Value = Tex245.Value
.Range("r30").Value = Tex246.Value
.Range("s30").Value = Tex247.Value
'...........................................
.Range("b31").Value = Tex248.Value
.Range("c31").Value = Tex249.Value
'...........................................
.Range("g31").Value = Tex250.Value
.Range("h31").Value = Tex251.Value
.Range("i31").Value = Tex252.Value
.Range("j31").Value = Tex253.Value
.Range("k31").Value = Tex254.Value
.Range("l31").Value = Tex255.Value
.Range("m31").Value = Tex256.Value
.Range("n31").Value = Tex257.Value
.Range("o31").Value = Tex258.Value
.Range("p31").Value = Tex259.Value
.Range("q31").Value = Tex260.Value
.Range("r31").Value = Tex261.Value
.Range("s31").Value = Tex262.Value
'...........................................
.Range("b32").Value = Tex263.Value
.Range("c32").Value = Tex264.Value
'...........................................
.Range("g32").Value = Tex265.Value
.Range("h32").Value = Tex266.Value
.Range("i32").Value = Tex267.Value
.Range("j32").Value = Tex268.Value
.Range("k32").Value = Tex269.Value
.Range("l32").Value = Tex270.Value
.Range("m32").Value = Tex271.Value
.Range("n32").Value = Tex272.Value
.Range("o32").Value = Tex273.Value
.Range("p32").Value = Tex274.Value
.Range("q32").Value = Tex275.Value
.Range("r32").Value = Tex276.Value
.Range("s32").Value = Tex277.Value
'...........................................
.Range("g33").Value = Tex401.Value
.Range("h33").Value = Tex402.Value
.Range("i33").Value = Tex403.Value
.Range("j33").Value = Tex404.Value
.Range("k33").Value = Tex405.Value
.Range("l33").Value = Tex406.Value
.Range("m33").Value = Tex407.Value
.Range("n33").Value = Tex408.Value
.Range("o33").Value = Tex409.Value
.Range("p33").Value = Tex410.Value
.Range("q33").Value = Tex411.Value
.Range("r33").Value = Tex412.Value
.Range("s33").Value = Tex413.Value
'...........................................
.Range("k34").Value = Tex414.Value
Application.ScreenUpdating = True
On Error GoTo 0
End With
End If
MsgBox "done"
Dim X
For Each X In Me.Controls
If TypeOf X Is MSForms.TextBox Then
X.Text = ""
End If
Next X
Call print_statment
Application.ScreenUpdating = True