Private Sub Add_SDA_SSA(Sh As Worksheet, lSh As Worksheet, lLrow As Long)
Dim n As Long
Dim txtRemark As String
'count how many lines the body items has. This is based on the bellow range. Chnage if you think
'another range should be used.
n = WorksheetFunction.CountA(Sh.Range("A20:A26"))
'header section
lSh.Cells(lLrow, "C").Resize(n, 1).Value = Sh.Cells(6, "J").Value
lSh.Cells(lLrow, "D").Resize(n, 1).Value = Sh.Cells(8, "I").Value
lSh.Cells(lLrow, "E").Resize(n, 1).Value = Sh.Cells(8, "K").Value
lSh.Cells(lLrow, "F").Resize(n, 1).Value = Sh.Cells(9, "I").Value
lSh.Cells(lLrow, "G").Resize(n, 1).Value = Sh.Cells(11, "I").Value
'main body section
lSh.Cells(lLrow, "H").Resize(n, 1).Value = Sh.Cells(20, "A").Resize(n, 1).Value
lSh.Cells(lLrow, "I").Resize(n, 1).Value = Sh.Cells(20, "E").Resize(n, 1).Value
lSh.Cells(lLrow, "J").Resize(n, 1).Value = Sh.Cells(20, "F").Resize(n, 1).Value
lSh.Cells(lLrow, "K").Resize(n, 1).Value = Sh.Cells(20, "G").Resize(n, 1).Value
'footer section
txtRemark = Sh.Cells(39, "C").Value & " " & Sh.Cells(40, "C").Value & " " & Sh.Cells(41, "C").Value
lSh.Cells(lLrow, "L").Resize(n, 1).Value = txtRemark
End Sub
Private Sub Add_SD(Sh As Worksheet, lSh As Worksheet, lLrow As Long)
Dim n As Long
'count how many lines the body items has. This is based on the bellow range. Chnage if you think
'another range should be used.
n = WorksheetFunction.CountA(Sh.Range("A20:A31"))
'<<<>>>
'<<<<again entered="" by="" and="" cannot="" be="" associated="" from="" the="" form="" data="">>>>
'header section
lSh.Cells(lLrow, "C").Resize(n, 1).Value = Sh.Cells(3, "H").Value
lSh.Cells(lLrow, "D").Resize(n, 1).Value = Sh.Cells(4, "H").Value
lSh.Cells(lLrow, "E").Resize(n, 1).Value = Sh.Cells(6, "H").Value
lSh.Cells(lLrow, "F").Resize(n, 1).Value = Sh.Cells(11, "B").Value
'main body section
lSh.Cells(lLrow, "G").Resize(n, 1).Value = Sh.Cells(20, "A").Resize(n, 1).Value
lSh.Cells(lLrow, "H").Resize(n, 1).Value = Sh.Cells(20, "B").Resize(n, 1).Value
lSh.Cells(lLrow, "I").Resize(n, 1).Value = Sh.Cells(20, "C").Resize(n, 1).Value
lSh.Cells(lLrow, "J").Resize(n, 1).Value = Sh.Cells(20, "D").Resize(n, 1).Value
'footer section
lSh.Cells(lLrow, "K").Resize(n, 1).Value = Sh.Cells(43, "B").Value
End Sub
Private Sub Add_SMA(Sh As Worksheet, lSh As Worksheet, lLrow As Long)
Dim txtMatDesc As String
'<<<<again entered="" by="" and="" cannot="" be="" associated="" from="" the="" form="" data="" or="" "data="" 17"="">>>>
'header section
lSh.Cells(lLrow, "C").Value = Sh.Cells(3, "J").Value
lSh.Cells(lLrow, "D").Value = Sh.Cells(4, "J").Value
lSh.Cells(lLrow, "E").Value = Sh.Cells(7, "J").Value
'main body section
txtMatDesc = Sh.Cells(15, "B").Value & " " & Sh.Cells(16, "B").Value
lSh.Cells(lLrow, "F").Value = txtMatDesc
lSh.Cells(lLrow, "G").Value = Sh.Cells(17, "C").Value
lSh.Cells(lLrow, "H").Value = Sh.Cells(18, "C").Value
lSh.Cells(lLrow, "I").Value = Sh.Cells(19, "C").Value
lSh.Cells(lLrow, "J").Value = Sh.Cells(18, "I").Value
lSh.Cells(lLrow, "K").Value = Sh.Cells(19, "I").Value
lSh.Cells(lLrow, "L").Value = Sh.Cells(22, "C").Value
lSh.Cells(lLrow, "M").Value = Sh.Cells(23, "C").Value
lSh.Cells(lLrow, "N").Value = Sh.Cells(24, "C").Value
lSh.Cells(lLrow, "O").Value = Sh.Cells(27, "C").Value
lSh.Cells(lLrow, "P").Value = Sh.Cells(30, "F").Value
lSh.Cells(lLrow, "Q").Value = Sh.Cells(31, "F").Value
lSh.Cells(lLrow, "R").Value = Sh.Cells(33, "F").Value
lSh.Cells(lLrow, "S").Value = Sh.Cells(34, "F").Value
'footer section
lSh.Cells(lLrow, "K").Value = Sh.Cells(43, "B").Value
End Sub