VBA merge 2 workbook 1 workbook

Powerblade

New Member
Joined
Sep 9, 2011
Messages
2
Dear friends!;)

I have a big problem, where i tried a lot of code...

Here is the deal:

Data is from a company who has i.e. 100 employees with gsm-phone, all contracted by 1 operator and becomes 1 invoice with all 100 gsm-phone charges and specs.

I have 2 worksbooks:

1: Invoice.xls
2: userdata.xls

1: invoice has all data of gsm-phone-nr's, dates, etc etc
2: userdata has 2 info: gsm-nr and name of the corresponding person

I want 1 new workbook:

first column called nr:
autonr...: according to merged rows, 1,2,3,4 etc etc..

2. column: date invoice:
look workbook invoice and cell:F4

3. column: desciption:
look into workbook invoice column B(gsm numbers) and select only rows of column A containing :aans*
next match the found columns with
workbook userdata and output all the phonenumbers from invoice and put after the numbers, the corresponding names with the gsm-numbers like:

gsm-number, name,

after that, look to invoice cell: f5 ( date ) and put it as last you get:

gsm-number, name,date

4. coulmn phonenr:

same as 3, look into workbook invoice column B(gsm numbers) and select only rows of column A containing :aans*

5. column: Price
look into workbook invoice column L(Price) and select only rows of column A containing :aans*

invoice:

invoice.JPG


userdata:
userdata.JPG


output workbook:









output_workbook.JPG
http://www.gpssystem.nl/output_workbook.JPG
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
no one who can help?? please, if a part of the code working, is ok tooo...

maybe different people can help with several parts.... every suggestion is more then welcome...

waiting for all kind of help.

thanks in advance for all people who replies...
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,135
Members
452,890
Latest member
Nikhil Ramesh

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