Yeah, that's the part where I said:

You'll notice in the macro that the 
Destination folder, and Sheet names 
will need to be "set".
 
'----------------------------- ------------------------------
    ShtData = "Source Data Format"
    ShtID = "Sales IDs"
    DestFolder = "C:\temp\VBA\testing\"
'----------------------------- ------------------------------

I kind-of expected you to want to do that BEFORE you ran it.
Since not having the destination folder would GUARANTEE that it wouldn't run 
properly.

as long as it gets the job done....

if you need any help understanding what the macro is doing (and why) let me 
know.

BTW.  Since some of your SalesID's are entered as "text" and the same ID's are 
considered "numeric" by Excel, I had to force them to both be "text"
since Excel consideres 1234 and "1234" to be two different values.

Since I didn't know if the actual values were numeric, I chose to 
simply "force" 
them to be text strings.
 
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
-----------------------------------------




________________________________
From: Matty <wheelo...@msn.com>
To: excel-macros@googlegroups.com
Sent: Tue, October 9, 2012 10:27:20 AM
Subject: Re: $$Excel-Macros$$ Macro to Filter OR Copy and Paste row data to a 
new worksheet based on Mult Data Values


This is amazing!  Thanks again!  I think I need to tweak a few things but I 
can't thank you enough.  This really going to help.  Works very well.  I get a 
"Path not found" error but I believe that's because I ran it on my machine.  
Notice you created a destination folder seemingly unique to your PC in the 
script itself I believe.  If I replace that with my own it should run proper 
per 
your comments below, no?  But again, I can't even thank you enough!  



On Tuesday, October 9, 2012 9:03:00 AM UTC-4, Paul Schreiner wrote:
Here you go.
>The macros are a little more "sloppy" than I'd
>normally manage, but since I don't know enough about your
>data, I had to build in some stuff I normally wouldn't bother with.
>
>The macro (Make_Reports) does this:
>
>Reads the Header row from the Sales IDs sheet
>and creates sheets for each of the "Sales IDs".
>It copies the first row (header row) from the Data sheet
>to each of the Sales sheets.
>
>I then load a Dictionary object with the SalesID/Salesperson data.
>I use this to "look up" the Salesperson's name for each Sales #.
>
>BTW, I also check for duplicate assignments.
>
>I then parse through the Data and copy the records to the appropriate Sheet.
>
>If the Sales# hasn't been assigned, then a Message box is displayed.
>
>Once the sheets have been filled, 
>I then Save each file to the Destination folder.
>
>You'll notice in the macro that the Destination folder, and Sheet names
>will need to be "set".
>
>'----------------------------- ------------------------------
>    ShtData = "Source Data Format"
>    ShtID = "Sales IDs"
>    DestFolder = "C:\temp\VBA\testing\"
>'----------------------------- ------------------------------
>
>I ran the macro with 10,000 records, and it took about 5 seconds.
>
>BTW.. I closed each of the workbooks when complete.
>If you really want them to remain open, simply comment out the .Close line.
>
> 
>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
>------------------------------ -----------
>
>
>
>
>
________________________________
From: Paul Schreiner <schrein...@att.net>
>To: excel-...@googlegroups.com
>Sent: Tue, October 9, 2012 7:25:20 AM
>Subject: Re: $$Excel-Macros$$ Macro to Filter OR Copy and Paste row data to a 
>new worksheet based on Mult Data Values
>
>
>So, instead of separate workbooks based on Sales#,
>you'd like separate workbooks based on SalesID?
>with all Sales#'s for that SalesID?
>
>I'll see what I can do.
>I'll get back with you in the next few minutes.
> 
>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
>------------------------------ -----------
>
>
>
>
>
________________________________
From: Matty <whee...@msn.com>
>To: excel-...@googlegroups.com
>Sent: Mon, October 8, 2012 4:33:06 PM
>Subject: Re: $$Excel-Macros$$ Macro to Filter OR Copy and Paste row data to a 
>new worksheet based on Mult Data Values
>
>
>Named and left open as I need to send them to their respective owners.  I 
>attached a file for your reference to help better understand.  You'll notice 
>how 
>Bob has many numbers and others have 2 and others have one Sales ID number.  I 
>also attached the Header format and the exact number of columns that the data 
>is 
>in.  The number of rows varies based on sales for that day.  Thanks so much 
>again!  
>
>
>
>On Monday, October 8, 2012 3:40:03 PM UTC-4, Paul Schreiner wrote:
>How do you want the files named?
>>Do you want them in a specific folder?
>>
>>Do you want them left open at the completion of the macro? or close them all?
>>
>> 
>>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
>>------------------------------ -----------
>>
>>
>>
>>
>>
________________________________
From: Matty <whee...@msn.com>
>>To: excel-...@googlegroups.com
>>Sent: Mon, October 8, 2012 3:06:00 PM
>>Subject: Re: $$Excel-Macros$$ Macro to Filter OR Copy and Paste row data to a 
>>new worksheet based on Mult Data Values
>>
>>
>>Option b please.  Multiple rows based on value in column A.  So everytime 
>>4011 
>>is found in column A, I would want the the corresponding row data pasted into 
>>a 
>>separate workbook and tha sme for 4010, 4012, etc...I appreciate the help.  I 
>>know it's not hard, I'm just limited in terms of my VBA knowledge.  
>>
>>
>>
>>On Monday, October 8, 2012 2:55:49 PM UTC-4, Paul Schreiner wrote:
>>Are you saying that you want each row of data copied to a NEW workbook?
>>>or are you say that you have multiple rows 
>>>that you want copied to separate workbooks based on the value in column A 
>>>for 
>>>each row?
>>>
>>>either way is easily done.
>>>
>>>
>>>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
>>>------------------------------ -----------
>>>
>>>
>>>
>>>
>>>
________________________________
From: Matty <whee...@msn.com>
>>>To: excel-...@googlegroups.com
>>>Sent: Mon, October 8, 2012 2:47:52 PM
>>>Subject: $$Excel-Macros$$ Macro to Filter OR Copy and Paste row data to a 
>>>new 
>>>worksheet based on Mult Data Values
>>>
>>>
>>>I need a macro that will copy specific rows based on the first value in my 
>>>example:  
>>>
>>>
>>>A1     B1, C1, D1, E1, Etc...  thru AA1   
>>>0041
>>>0042
>>>0043
>>>0041
>>>0041
>>>0043
>>>Etc...
>>>
>>>A1 is the reference value.  B1 through AA1 indicate the Data range I need 
>>>copied 
>>>to a new worksheet but a workbook would be better. 
>>>
>>>So I would need the data row that corresponds with for 0041 copied and 
>>>pasted 
>>>to its own worksheet/workbook and the corresponding data for 0042 in its own 
>>>workbook and 0043 in its own workbook, etc... 
>>>
>>>Right now I am filtering, copying and pasting manually.  It's time consuming 
>>>to 
>>>say the least.  I have come up with a formula but have to edit it for each 
>>>respective cell  which is even more time consuming than filtering.  Please 
>>>help?  Thanks!     -- 
>>>
>>>Join official facebook page of this forum @ https://www.facebook.com/ 
>>>discussexcel
>>> 
>>>FORUM RULES (1120+ members already BANNED for violation)
>>> 
>>>1) Use concise, accurate thread titles. Poor thread titles, like Please 
>>>Help, 
>>>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not 
>>>get 
>>>quick attention or may not be answered.
>>> 
>>>2) Don't post a question in the thread of another member.
>>> 
>>>3) Don't post questions regarding breaking or bypassing any security measure.
>>> 
>>>4) Acknowledge the responses you receive, good or bad.
>>> 
>>>5) Cross-promotion of, or links to, forums competitive to this forum in 
>>>signatures are prohibited. 
>>>
>>> 
>>>6) Jobs posting is not allowed.
>>> 
>>>7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
>>> 
>>>NOTE : Don't ever post personal or confidential data in a workbook. Forum 
>>>owners 
>>>and members are not responsible for any loss.
>>>--- 
>>>You received this message because you are subscribed to the Google Groups 
>>>"MS 
>>>EXCEL AND VBA MACROS" group.
>>>To post to this group, send email to excel-...@googlegroups.com.
>>>To unsubscribe from this group, send email to excel-macros...@ 
>>googlegroups.com.
>>> 
>>> 
>>>-- 
>Join official facebook page of this forum @ https://www.facebook.com/ 
>discussexcel
> 
>FORUM RULES (1120+ members already BANNED for violation)
> 
>1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
>quick attention or may not be answered.
> 
>2) Don't post a question in the thread of another member.
> 
>3) Don't post questions regarding breaking or bypassing any security measure.
> 
>4) Acknowledge the responses you receive, good or bad.
> 
>5) Cross-promotion of, or links to, forums competitive to this forum in 
>signatures are prohibited. 
>
> 
>6) Jobs posting is not allowed.
> 
>7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
> 
>NOTE : Don't ever post personal or confidential data in a workbook. Forum 
>owners 
>and members are not responsible for any loss.
>--- 
>You received this message because you are subscribed to the Google Groups "MS 
>EXCEL AND VBA MACROS" group.
>To post to this group, send email to excel-...@googlegroups.com.
>To unsubscribe from this group, send email to excel-macros...@ 
googlegroups.com.
> 
> 
>-- 
Join official facebook page of this forum @ https://www.facebook.com/ 
discussexcel
 
FORUM RULES (1120+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

 
6) Jobs posting is not allowed.
 
7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners 
and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-...@googlegroups.com.
To unsubscribe from this group, send email to excel-macros...@ googlegroups.com.
 
 
-- 
>Join official facebook page of this forum @ https://www.facebook.com/ 
>discussexcel
> 
>FORUM RULES (1120+ members already BANNED for violation)
> 
>1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
>quick attention or may not be answered.
> 
>2) Don't post a question in the thread of another member.
> 
>3) Don't post questions regarding breaking or bypassing any security measure.
> 
>4) Acknowledge the responses you receive, good or bad.
> 
>5) Cross-promotion of, or links to, forums competitive to this forum in 
>signatures are prohibited. 
>
> 
>6) Jobs posting is not allowed.
> 
>7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
> 
>NOTE : Don't ever post personal or confidential data in a workbook. Forum 
>owners 
>and members are not responsible for any loss.
>--- 
>You received this message because you are subscribed to the Google Groups "MS 
>EXCEL AND VBA MACROS" group.
>To post to this group, send email to excel-...@googlegroups.com.
>To unsubscribe from this group, send email to excel-macros...@ 
googlegroups.com.
> 
> 
>-- 
Join official facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES (1120+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

 
6) Jobs posting is not allowed.
 
7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners 
and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.

-- 
Join official facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES (1120+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

6) Jobs posting is not allowed.

7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.


Reply via email to