Pat,
Basically you'll want some code associated with the [print it] button on the
form that not only prints the form, but then transfers the data from it into
a worksheet somewhere. I can give you some rough ideas here, you'll have to
adapt this "pseudo" code to your real world form's control names and the
worksheet name that you want to record the information on in the workbook.
Dim reportWS As Worksheet
Dim baseCell As Range
'get a reference to the worksheet in the workbook
Set reportWS = ThisWorkbook.Worksheets("some sheet name")
'get a reference to the next empty cell in column A on that sheet
Set baseCell = reportWS.Range("A" & Rows.Count).End(xlUp).Offset(1,0)
'now we start transfering data from the form to the worksheet
'I will just fake some possible information from the form and tell
'where it will go on the sheet
'
'transfer salesperson's id to column A
baseCell = Me.SalesID.Value
'transfer some dollar value to column B
baseCell.Offset(0,1) = Me.SalesAmount.Value
'transfer commission rate to column C
baseCell.Offset(0,2) = Me.CommissionRate.Value
'calculate the commission & put it into column D
baseCell.Offset(0,3) = baseCell.Offset(0,1) * baseCell.Offset(0,2)
'record the time of this entry
baseCell.Offset(0,4) = Now()
hopefully that will head you in a direction you can live with.
Pat Rice said:
I have a form that my sales guys use to figure out commission break down. I
want that form to go into a tracking sheet to figure out averages. The form
is never saved, just printed out, so the tracking will have to be once it is
printed. I know this is a lot but is it doable. If so can someone point me in
the right direction.