EXCEL: Need help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to creat a daily sales tracking sheet. Users will be able to
track their sales and then excel would register it on a different sheet. Can
anyone help?
 
Could you please give more information?

For example,
1) How's the layout of data like on the sheet which you "track the sales"?
2) What information do you want to "register on another sheet"?
 
You might start out with Sheets named Salesperson1, Salesperson2.... one
for each Salesperson. You will likely want to create the first one and save
it as a Template (in the Save AS dialog, below the file name, there is a box
for file TYPE. Select "template")
Then when you open a new one it will all be laid out for you identical to
the first one.
In your Template use a layout similar to this:
Col A = Date
Col B = Salesperson's Name
Col C = Sales Amt
optional columns

Then create a Master or Summary worksheet that will gather the data for all
salespeople:
Same columns

Then Right-click on the Excel Icon which is at the far left on the top Menu
Bar (to the left of "File". Click on View Code and insert:

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)

Dim Mast As Worksheet
Dim Dest As Range


If Not Sh.Name = "Master" Then 'adj Name as needed
If Target.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("C2:C65536")) Is Nothing Then 'adj
to your Sales Amt range
Set Mast = Sheets("Master")
With Mast
Set Dest = .Cells(.Rows.Count, 1).End(xlUp).Offset(1,
0)
Target.EntireRow.Copy Dest
End With
End If
End If
Set Mast = Nothing
Set Dest = Nothing
End Sub
 
Tom,

Thanks, I'll read cperson's site so I won't make that mistake again.

Charles
 
Thanks,
and it was just a heads up on common practice (and you are always free to do
what you want - this isn't a moderated group). Everyone appreciates your
willingness to share your knowledge/expertise and the quality posts and
assistance you have been providing.
Keep up the good work.
 
Thanks for the compliment. I've learned a great deal from this group and the
forum. Thanks to you and the rest of the "Team".

Charles
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top