want vba scripting code and vba array code

roykana

Active Member
Joined
Mar 8, 2018
Messages
311
Office Version
  1. 2010
Platform
  1. Windows
Dear all master,

I want very fast vba scripting code and array vba code to import or read data in a folder or sub folder containing excel files.

There are 500-600 excel files. I want some excel files that I have marked yellow or only have outstanding values to appear in the excel result file.

The multiple file formats are all the same and with the sheet name "2014". I have shared the example excel file.

Provide 2 lines, namely hard-coded and with File Dialog Box so I can uncomment according to my needs.
link file : want vba scripting code and vba array code - Google Drive

LINK

Thanks
roykana
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Dear all master,

I want very fast vba scripting code and array vba code to import or read data in a folder or sub folder containing excel files.

There are 500-600 excel files. I want some excel files that I have marked yellow or only have outstanding values to appear in the excel result file.

The multiple file formats are all the same and with the sheet name "2014". I have shared the example excel file.

Provide 2 lines, namely hard-coded and with File Dialog Box so I can uncomment according to my needs.
link file : want vba scripting code and vba array code - Google Drive

LINK

Thanks
roykana
Dear all master,
for the file link that I share, I have changed the language to English so it is easy to understand. Below I want to explain logically.
D
DatedescriptionDebitCreditAmount
01-01-16beginning balance-
18-08-19sale- FN SI62107016428,000.00(428,000.00)
18-08-19payment - cash50,000.00(378,000.00)
01-03-20sale- FN SI621070175,010,000.00(5,388,000.00)
25-06-20payment - cash2,000,000.00(3,388,000.00)
06-10-20payment - cash3,010,000.00(378,000.00)
08-07-20sale- FN SI621070181,209,000.00(1,587,000.00)
11-07-20payment - cash500,000.00(1,087,000.00)
01-12-20sale- FN SI62107019270,000.00(1,357,000.00)
01-12-20payment - cash50,000.00(1,307,000.00)
01-12-20Retur - FN RS5200600510,000.00(1,297,000.00)
01-12-20Others -
Pay Discount
30,000.00(1,267,000.00)
20-02-21sale- FN SI62107020515,000.00(1,782,000.00)
20-02-21payment - cash515,000.00(1,267,000.00)

RESULT
FilenameDatedescriptionDebitCreditAmount
D
18-08-19​
Sale- FN SI62107016428,000- 428,000
D
18-08-19​
payment - cash50,000- 378,000
D
08-07-20​
sale- FN SI621070181,209,000- 1,587,000
D
11-07-20​
payment - cash500,000- 1,087,000
D
01-12-20​
sale- FN SI62107019270,000- 1,357,000
D
01-12-20​
payment - cash50,000- 1,307,000
D
01-12-20​
Retur - FN RS5200600510,000- 1,297,000
D
01-12-20​
Others -
Pay Discount
30,000- 1,267,000

so I give an example if there is a sale (01) line then below it there is a payment or something else for the (01) sale. if there is no payment or other then the next line is sales (02). If you have any questions or misunderstandings, please communicate with me.
so if the value of the sale is not the same as the payment, return and others for the sale then that value is outstanding so it appears in the excel result file.


Thanks
roykana
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

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