I wonder if anyone can help me. I've created a userform with cascading comboboxes and other fields and when completed the userform populates cells B3:H3. The problem that I'm running into is that I need the form to populate the next row with the next entry of information. For example, the first time the user enters information, the userform populates B3:H3. The second time information is entered it populates B4:H4 and so on. Additionally, if the user clicks the command button "Cancel" the row of cells it currently populates should be cleared and the sub should not proceed to the next row.
Any help would be greatly appreciated! I've copied the userform code below as a reference.
Private Sub Calendar1_Click()
Range("B3").Value = Calendar1.Value
End Sub
Private Sub EntryBox1_Change()
If EntryBox1.Value = "" Then
EntryBox2.Clear
ElseIf EntryBox1.Value = "Income" Then
EntryBox2.RowSource = "Categories!F2:F6"
ElseIf EntryBox1.Value = "Costs" Then
EntryBox2.RowSource = "Categories!G2:G16"
Range("H3").Font.ColorIndex = 3
ElseIf EntryBox1.Value = "Transfer Out" Then
EntryBox2.RowSource = "Categories!A103"
Range("H3").Font.ColorIndex = 3
ElseIf EntryBox1.Value = "Transfer In" Then
EntryBox2.RowSource = "Categories!A104"
End If
End Sub
Private Sub CommandButton1_Click()
EntryJan001.Hide
End Sub
Private Sub TextBox1_Change()
End Sub
Private Sub Label2_Click()
End Sub
Private Sub UserForm_Click()
End Sub
Any help would be greatly appreciated! I've copied the userform code below as a reference.
Private Sub Calendar1_Click()
Range("B3").Value = Calendar1.Value
End Sub
Private Sub EntryBox1_Change()
If EntryBox1.Value = "" Then
EntryBox2.Clear
ElseIf EntryBox1.Value = "Income" Then
EntryBox2.RowSource = "Categories!F2:F6"
ElseIf EntryBox1.Value = "Costs" Then
EntryBox2.RowSource = "Categories!G2:G16"
Range("H3").Font.ColorIndex = 3
ElseIf EntryBox1.Value = "Transfer Out" Then
EntryBox2.RowSource = "Categories!A103"
Range("H3").Font.ColorIndex = 3
ElseIf EntryBox1.Value = "Transfer In" Then
EntryBox2.RowSource = "Categories!A104"
End If
End Sub
Private Sub CommandButton1_Click()
EntryJan001.Hide
End Sub
Private Sub TextBox1_Change()
End Sub
Private Sub Label2_Click()
End Sub
Private Sub UserForm_Click()
End Sub