Post your out of the ordinary VBA projects

Blade Hunter

Well-known Member
Joined
Mar 13, 2008
Messages
3,147
Nearly 3,000 posts and I only just found out about the lounge (thanks vcoolio ;))

So I thought in celebration of my upcoming 3K I could start a thread to VBA projects you have worked on or designed which is outside the bounds of "normal"

For example, I built an end to end reporting system called ARES (Automated Response Email System). ARES was designed as an auto response system to stop me from having to run 30+ report requests per day.

The basic structure was:

Email came in to ARES@company.com
VBA code in outlook on a VM interpreted the email then posts a request to a database table
Secondary process an Excel VBA process call the RRC (Remote Report Controller) ran as a scheduled task once a minute on the VM, it looked for requests and ran the one with the lowest ID number, first off it changed a flag from 0 to 1 to show instead of pending it was running, then it ran the report, then it emailed it out then finally set the flag to 2 for complete.

What made this so out of the bounds of "normal" that I built this thing to work on common English. So someone could email it "How many units did we sell last week of ArtistName Product Title" and it would work out what it all meant.

At its peak it was pushing 20 reports a day so nothing massive but when I stress tested it I fired 20 requests in a minute and it dealt just fine.

The key was having the 2 stage process, this mean outlook very quickly posted the request then quit back to waiting for emails no matter how long Excel got tied up running a report, another RRC process would fire off 1 min later to run subsequent requests.

The plan was to then set up trigger events in the database so when new sales figures were ingested a flag could be set for the RRC to run daily reports, this way they were run and emailed out as soon as data was made available to us. I built the code for it but got made redundant shortly before I was going to release V2 :(.

Lastly I put a little treat in there for my team, people were always sending us a bunch of product codes or UPC's without details, all they needed to do was forward it to ARES with the title GetProducts and it would send back a spreadsheet with the products and all details in within about 10 seconds :).

I do actually miss working on that system, it was my design, theory, creation and code :).

Happy to share bits with anyone that is interested. Particularly the routine to work out date ranges from common phrases, that bit was fun to build.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,223,723
Messages
6,174,121
Members
452,545
Latest member
boybenqn

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