Senin, 04 Februari 2019

Re: [ExcelVBA] Macro to copy info from one shet to another

 

Since you're wanting to keep the cell formatting, you're going to want to use a copy/paste method.
I could easily write you a script that would loop through your file and copy the data from one sheet to the others..

Is the data confidential?

it would be faster if I used your file (or something similar)
rather than spend the time creating a "dummy" file.
It looks like there are only 7 columns.
How many rows?

based on the headers, I'm not sure what kind of formulas you would have that would cause issues.

I have lots of files I could use for dummy data (some with over 100,000 rows and over 70 columns)
but most are raw data without formulas, so I don't know if it will emulate your conditions adequately.

Paul

-----------------------------------------
"Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can." - John Wesley
-----------------------------------------



On Monday, February 4, 2019, 12:28:05 PM EST, Green 1z@compuserve.com [ExcelVBA] <ExcelVBA@yahoogroups.com> wrote:


 

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


__._,_.___

Posted by: Paul Schreiner <schreiner_paul@att.net>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (4)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA
------------------------------------

SPONSORED LINKS
.

__,_._,___

Tidak ada komentar:

Posting Komentar