Hello, I'm very new to VBA and excel coding so anything will help here. I'm attempting to track sales data by Product # and Date (by day) in a table in excel. I have the table set up with product # down column B, starting in B2 and Dates starting with 1/1/2016 across the top starting in cell C1. I have a userform created but have no idea where to start the code for adding the sales quantity data. I want the userform setup so that the user can input product #, date, and quantity, click ADD and then it will add the quantity data from the userform into the cell reference from the text of the other two inputs of the userform. I'm not even sure if this is possible but seems like it should be. Below is the userform code with nothing in the add button. I was able to use formulas to populate using index match but it slowed down the spreadsheet to much and I worry information may be deleted by the user of the spreadsheet.
Private Sub cmdADD_Click()
End Sub
Private Sub cmdCLEAR_Click()
Dim z As Control
For Each z In frmSALES.Controls
If TypeName(z) = "TextBox" Then
z.Value = ""
End If
Next z
End Sub
Private Sub cmdCLOSE_Click()
Unload Me
End Sub
Private Sub cmdADD_Click()
End Sub
Private Sub cmdCLEAR_Click()
Dim z As Control
For Each z In frmSALES.Controls
If TypeName(z) = "TextBox" Then
z.Value = ""
End If
Next z
End Sub
Private Sub cmdCLOSE_Click()
Unload Me
End Sub