Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Do Until rst.EOF
With wbk.Sheets("JournalEntryTemplate")
IRecords = IRecords + 1
.Range("G3") = rst.Fields("BranchNumber").Value
.Cells(J, 11).Value = rst.Fields("GL_Acct").Value
.Cells(J, 12).Value = rst.Fields("GL_Subacct").Value
.Cells(J, 15).Value = rst.Fields("GROSS").Value
.Cells(J, 17).Value = rst.Fields("AccountDescription").Value
.Cells(J, 3).Value = IRecords
.Cells(J, 4).Value = .Range("G6") 'Year(Now())
.Cells(J, 5).Value = .Range("G4")
.Cells(J, 6).Value = .Range("G5")
.Cells(J, 7).Value = .Range("G7") 'Month(Now()) - 1
.Cells(J, 8).Value = .Range("G8")
.Cells(J, 9).Value = rst.Fields("BranchNumber").Value
.Cells(J, 10).Value = .Range("G3") & "" & ("600")
.Cells(J, 18).Value = .Range("G10")
.Cells(J, 2).Value = ("A")
.Cells(J, 20).Value = rst.Fields("Ins").Value
.Cells(J, 21).Value = rst.Fields("Tax").Value
.Cells(J, 22).Value = rst.Fields("Sub").Value 'Sub
End With
J = J + 1 'Moves to next row each time through loop
rst.MoveNext
Loop