Hi Sharron,
Have you tried using the autofilter.
Select the titles at the top of the columns.
On the Home Tab over on the right in the editing group you should see Sort and Filter.
Click that and then click filter.
The headings will then have a drop down on them.
Click the drop down and UN tick Select all.
Tick/select one of your three sales persons.
Click OK and then only that sales person will be shown.
Copy those cells and paste them to your new sheet.
Only that salespersons details will be copied.
HTH
Lisa
-----Original Message-----
From: Sharron Puryear sheizageek@yahoo.com [ExcelVBA] <ExcelVBA@yahoogroups.com>
To: ExcelVBA <ExcelVBA@yahoogroups.com>
Sent: Mon, Feb 4, 2019 5:15 pm
Subject: [ExcelVBA] Macro to copy info from one shet to another
I have created a workbook with 4 worksheets in it. The first worksheet is a report updated every day with sales from 3 sales people as well as "house". The company has changed policy so that a salesperson can only see his/her sales. So, I need to be able to have an individual sales person's worksheet and have all of the sales for that particular person copy to that sheet so that totals etc., could be given to that individual only.
I would just sort, copy and paste, but there is a lot of formatting and formulas on the original sheet that I don't want to get messed up. The original columns are pretty much in stone or I would use VLookup.
The fields are: Date, Sales person, amount, name, item, source, email
I am at a total loss. This was put in my lap Friday and I watched a dozen tutorials on VBA however, none of them addressed this.
Any help is appreciated. I love this group.
Sharron Puryear
Tidak ada komentar:
Posting Komentar