Sub tranAcct()
Dim eRow As Integer
Dim nextBox As Integer
eRow = BlankRow("Journal", 3, 2) + 1
With TransactionEntry
For nextBox = 1 To 6
If .Controls("acctCbx" & nextBox).Value <> "" Then
Sheets("Journal").Cells(eRow, 2).Value = .Controls("acctCbx" & nextBox).Value
If .Controls("Creditbutton" & nextBox).Value = True Then
Sheets("Journal").Cells(eRow, 2).InsertIndent 1
Sheets("Journal").Cells(eRow, 7).Value = .Controls("tbxAmnt" & nextBox)
ElseIf .Controls("Debitbutton" & nextBox).Value = True Then
Sheets("Journal").Cells(eRow, 5).Value = .Controls("tbxAmnt" & nextBox)
End If
eRow = eRow + 1
End If
Next
End With
Sheets("Journal").Cells(eRow, 2).Value = TransactionEntry.txbDescription
Sheets("Journal").Cells(eRow, 2).InsertIndent 2
Sheets("Journal").Cells(eRow, 2).Font.Italic = True
End Sub
Dim eRow As Integer
Dim nextBox As Integer
eRow = BlankRow("Journal", 3, 2) + 1
With TransactionEntry
For nextBox = 1 To 6
If .Controls("acctCbx" & nextBox).Value <> "" Then
Sheets("Journal").Cells(eRow, 2).Value = .Controls("acctCbx" & nextBox).Value
If .Controls("Creditbutton" & nextBox).Value = True Then
Sheets("Journal").Cells(eRow, 2).InsertIndent 1
Sheets("Journal").Cells(eRow, 7).Value = .Controls("tbxAmnt" & nextBox)
ElseIf .Controls("Debitbutton" & nextBox).Value = True Then
Sheets("Journal").Cells(eRow, 5).Value = .Controls("tbxAmnt" & nextBox)
End If
eRow = eRow + 1
End If
Next
End With
Sheets("Journal").Cells(eRow, 2).Value = TransactionEntry.txbDescription
Sheets("Journal").Cells(eRow, 2).InsertIndent 2
Sheets("Journal").Cells(eRow, 2).Font.Italic = True
End Sub