VBA for making dynamic bucketwise report from Ageing report while providing days from Form

ravi123

New Member
Joined
Dec 25, 2015
Messages
11
Hello All,

I'm developing a dynamic bucket wise OS report maker from Ageing report wherein users enter the days through form and by clicking the button "Make Bucketwise", the Bucketwise OS report will be generated (adjacent to the Ageing report) as per the days provided by users. Here users may enter any day i.e say one may want to make report for bucket 0-21 days however another user may want to generate for 0-16,17-21 and so on. The number of columns in the ageing report is fixed (and for ageing it is from Day 0 to Day 120 Plus) however number of rows may vary. File attached.

I had written codes for few ageing combinations however I'm not sure how I would write the code for all possible different combinations that ranges from Day 0 (Col.Q) to Day 120 Plus (Col.EH)? Also I'm now getting compile error procedure too large as my code is getting too long.

I'm sure there may be another way round wherein with the help of some declarations all combinations could be achieved.

Any help or suggestions will be highly appreciated and sorry for the long description.

DynamicBucketWise.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZCACBCCCDCECFCGCHCICJCKCLCMCNCOCPCQCRCSCTCUCVCWCXCYCZDADBDCDDDEDFDGDHDIDJDKDLDMDNDODPDQDRDSDTDUDVDWDXDYDZEAEBECEDEEEFEGEHEIEJEKELEMENEOEPEQER
1S. No.Dealer IdDealer NameRegionSub RegionUnit NameSales ManagerUnit HeadOriginal Credit LimitTemporary Credit LimitTotal Credit LimitAvailable Credit LimitSecurity DepositUncleared Cheque AmountTotal OutstandingOutstanding value in SAPDay 0Day 1Day 2Day 3Day 4Day 5Day 6Day 7Day 8Day 9Day 10Day 11Day 12Day 13Day 14Day 15Day 16Day 17Day 18Day 19Day 20Day 21Day 22Day 23Day 24Day 25Day 26Day 27Day 28Day 29Day 30Day 31Day 32Day 33Day 34Day 35Day 36Day 37Day 38Day 39Day 40Day 41Day 42Day 43Day 44Day 45Day 46Day 47Day 48Day 49Day 50Day 51Day 52Day 53Day 54Day 55Day 56Day 57Day 58Day 59Day 60Day 61Day 62Day 63Day 64Day 65Day 66Day 67Day 68Day 69Day 70Day 71Day 72Day 73Day 74Day 75Day 76Day 77Day 78Day 79Day 80Day 81Day 82Day 83Day 84Day 85Day 86Day 87Day 88Day 89Day 90Day 91Day 92Day 93Day 94Day 95Day 96Day 97Day 98Day 99Day 100Day 101Day 102Day 103Day 104Day 105Day 106Day 107Day 108Day 109Day 110Day 111Day 112Day 113Day 114Day 115Day 116Day 117Day 118Day 119Day 120Day 120 PlusPrevious Month Invoices CD DiferentialCurrent Month Invoices CD DiferentialInvoice Amount Pending For Monthend Knock OffLatest Invoice DateLastest Invoice NumberLatest Payment DatePosting DateBaseline DateUnsecured AmountZone
21123123Sample Dealer 1Dummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy Data278409.75002496600003456000000232340000000000000002059.7500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Dummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy Data
32121212Sample Dealer 2Dummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy Data12345000000000001234500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Dummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy Data
43131313Sample Dealer 3Dummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy Data317599.79000034350000000000232300000000000005853.510000000000000000235000070988.280000000000000000000000000000000000000000000000000000000000000000000000000Dummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy Data
54111222Sample Dealer 4Dummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy Data226924.0612312000023450000207700.06000000045670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Dummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy DataDummy Data
Ageing Report
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,148,393
Messages
5,746,437
Members
424,018
Latest member
dionlkk6

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
Top