Compiling Certain Data into Another Worksheet with VBA

betotototo

New Member
Joined
Jul 27, 2011
Messages
4
Hi all,

I have an infinite amount of invoices with data AFTER Sheet("toi") and an infinite amount of employee sheets BEFORE Sheet("toi") so hardcoding isn't going to be possible. I need certain numbers pulled and summed using a vba macro into Sheet("MASTER") that's already created.

My problem is I'm new to vba so when I'm looking at code, I don't understand what the heck is going on! I've seen some code that compile data from a column starting at a row and going infinitely down. However, I have a stopping point so I don't know how or where to tell the code to stop.

Here is a link to a sample googledocs I made: http://goo.gl/wLuXm

So I have MASTER, Brian James Mike Doug Chris Matt Nate (I'll call them emps), toi, AIR BAD CAR DAD ELF FAN GUM HAT(these are invoices, so I'll call them inv).

The inv are color coded yellow green and blue. If you look at the MASTER sheet, I've also colored them accordingly to show where the inv data should go. Since there can be an infinite amount of inv, I need a way to call all yellow blue and green sections in the inv and put them in the right spot in MASTER. And do this for each subsequent inv (all inv will be created after Sheet("toi")).


**Btw, the inv will be put in numerical then alphabetical order as is the list on the MASTER sheet. However, sometimes the list on MASTER will not have a corresponding inv (note FAN is on the MASTER list but does not have an inv tab). The vba code would have to find a way to respond to this.


I'm not sure what I'm getting into here but please let me know if this is possible and the difficulty level. I tried to follow http://www.vbaexpress.com/kb/getarticle.php?kb_id=151 but I don't understand it all.

Please help me if you can. Thanks in advance.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top