yoyomail

New Member
Joined
Jun 8, 2019
Messages
2
[FONT=&quot]vba is placed in different files[/FONT]
[FONT=&quot]all files are located in same path[/FONT]
[FONT=&quot]files are not opened[/FONT]
[FONT=&quot]if column B of sample.xls matches with column C of sample.csv and column J of sample.csv contains ABC and column L of sample.csv is empty then add 0.05 to column E of sample.xls and paste the total amount to coulmn L of sample.csv[/FONT]
[FONT=&quot]And[/FONT]
[FONT=&quot]if column B of sample.xls matches with column C of sample.csv and column J of sample.csv contains XYZ and column L of sample.csv is empty then subtract 0.05 to column F of sample.xls and paste the total amount to coulmn L of sample.csv[/FONT]
[FONT=&quot]all this i have to do by vba so plz have a look and do needful[/FONT]
[FONT=&quot]save and close all the files
[/FONT]
[FONT=&quot]<article class="message-body js-selectToQuote" style="box-sizing: border-box; margin: 10px 0px 0px;">sample.xls is 1.xls
sample.csv is BasketOrder..csv

ABC is BUY
XYZ is SELL


all files are located in desktop
vba code will be placed in seperate file

Download sample files from the below link

https://chandoo.org/forum/attachments/basketorder-csv.60506/
https://chandoo.org/forum/attachments/1-xls.60501/



</article>[/FONT]
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,215,043
Messages
6,122,825
Members
449,096
Latest member
Erald

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