Excel Code File: http://files.gove.net/shares/files/10w/jjwebb90/JJWebbFDICProject.xlsm
PDF WriteUp: http://files.gove.net/shares/files/10w/jjwebb90/JJWebb_ProjectWriteUp.pdf
My friend needed to download and save separate reports as excel files from the FDIC website. The challenge was that they are dynamic pages. The program had to go through steps online to retrieve each report. For my project I automated this process for him.
The FDIC site offers statistics on depository institutions. You can generate historical reports by going to http://www2.fdic.gov/SDI/main.asp and going through 12 steps including selecting radio buttons, selecting check boxes, and navigating through pages. Then you can save the report to Excel. Because a large number of reports needed to be generated, this process was time consuming and cumbersome.
I found a really cool way of automatically generating and saving these reports using VBA. A major part of the solution was discovering that each of the steps to generate a report doesn’t actually take you to a new web page (even though it appears to). Each “new page” was actually just part of a form that adds the variables you select to create a final URL for the report. So I drilled down to the code on the webpage to identify what the URL of one of the final report looks like (shown below).
“http://www2.fdic.gov/SDI/download_exect.asp?selInFlags=None&selections=28000%2CSZLNCRCD%2CSZLAUTO%2CSZ30CRCD%2CSZ30AUTO%2CSZ90CRCD%2CSZ90AUTO%2CSZDRCRCD%2CSZDRAUTO%2Cszuccrcd%2Cszucauto&selInReportDate=12%2F31%2F2009&IncomeBasis=&NumOfRpts=59&repincbas0=&repincbas1=&repincbas2=&repincbas3=&repincbas4=&repincbas5=&repincbas6=&repincbas7=&repincbas8=&repincbas9=&repincbas10=&repincbas11=&repincbas12=&repincbas13=&repincbas14=&repincbas15=&repincbas16=&repincbas17=&repincbas18=&repincbas19=&repincbas20=&repincbas21=&repincbas22=&repincbas23=&repincbas24=&repincbas25=&repincbas26=" & _ "&repincbas27=&repincbas28=&repincbas29=&repincbas30=&repincbas31=&repincbas32=&repincbas33=&repincbas34=&repincbas35=&repincbas36=&repincbas37=&repincbas38=&repincbas39=&repincbas40=&repincbas41=&repincbas42=&repincbas43=&repincbas44=&repincbas45=&repincbas46=&repincbas47=&repincbas48=&repincbas49=&repincbas50=&repincbas51=&repincbas52=&repincbas53=&repincbas54=&repincbas55=&repincbas56=&repincbas57=&repincbas58=&repincbas59=&SQL=SELECT+stru.Cert%2Cstru.MSA+from+risstru+stru" & _ "++where+stru.Active+%3D+1+++++++++++and+stru.repdte+%3D+%27" & Replace(CStr(DateAdd("q", quarters, CDate(theDate))), "/", "%2f") & "%27++order+by+stru.NAME+&submitButton2=submit"
By manipulating this URL I generated the correct reports. As an example of how this works, look at the variables that follow %2C such as %2CSZLNCRCD and %2CSZLAUTO. By including these variables in the URL I indicated that I want the report to include bank securitization activities in relation to the banks’ principle balances for credit cards and auto loans (CRCD = credit card & AUTO = auto loans). If that doesn’t make a lot of sense, then hopefully the project write up will clarify it.
With the URL for the information I needed, I used VBA code to save the data as an excel file. Then I used a loop to automatically change the date of the quarterly report (Replace(CStr(DateAdd("q", quarters, CDate(theDate))) and save the reports going back 5 years.
These are projects posted by the students of Dr. Gove Allen at Brigham Young University. These students have taken one semester-long course on VBA and generally have had no prior programming experience
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2010
(150)
-
▼
April
(71)
- Using Excel as a Music Player
- Experimental Design and Conjoint Analysis
- ITunes Playlist Comparer
- Comparable Company Automation Project
- Text file manipulation with VBA
- Bryce Newbold's VBA Project
- Calculating and Graphing the Efficient Frontier f...
- Gift Card Reconciliation
- Personal Budget Spreadsheet
- BLS PPI Database Query to Analyse Year-to-Year Cha...
- ReportFileExecutive SummaryThe purpose of my VBA p...
- Home Salon Management System
- New York City Apartment Complaint ListingExecutive...
- Personal Finance Tool
- Sales Agent Scorecard Generation for Integra Telecom
- The Matchmaker
- Numerical Heat Transfer Optimizations in VBA
- Web Table Converter
- CRM Data Entry Segmenation - Chris Brasher
- Report System for The Pendulum Court
- ScheduAll Report Automation - Karl Rosengren - Win...
- Farr Appraising Market Conditions Report
- Portfolio Tracker
- Luke's Automated SWA Boarder
- Sync Department Data
- A First Step Towards User-Defined Financial Ratios
- Business Charge Entry / Invoice Manager
- Awesome Adobe Automation
- Textbook List Price Aggregator by Adam Cuppett
- Money Allocator
- Minchin Timesheet v1.0.25059
- A more accurate bid
- Kingdom of Loathing Market Dashboard
- CALLING ALL CATTLE! AUTOMATING SWA’S ON-LINE RESE...
- Business Broker Searches
- Cowtail Biomechanics Analysis
- Crime in Cities data compilation
- Sudoku Solver
- Report Generator for a Legacy System
- Ward Directory Creator
- Fraud Analyzer
- Valuation of a company. Calculation of NPV and Pri...
- Daily Sales and Inventory Control for Costco Retai...
- Customer Relationship Management & Analysis Progra...
- JJ Webb - FDIC data generation
- Generating iTunes Related-Artist Playlists
- ZIltch!
- Byron Mackay - Mariner Add-ons
- Option Pricing
- Potential Project Portfolio by Erik Wenzel
- Appointment Reminders Program - Micah Lorenc
- US Army APFT score calculator and automated Counse...
- Martech Computers Invoice Scraper
- iSYB Budget - Dustin Skinner (Winter 2010)
- Tory Betts Final Project
- U.S. Treasury TARP Report Generator - Ryan Wood - ...
- Copy Report Automation - Shauna Call, Winter 2010
- Easycache - a time saving tool for Geocaching.com ...
- Inventory Optimizer - Andrea Cordani, Winter 2010
- Get a Room! - Mark Tuttle - Winter 2010
- MyData info parser - Jeff Baxter - Winter 2010
- Whisk Recipe Organizer - Brandon Anderson - Winter...
- http://files.gove.net/shares/files/10w/kdl22/VBA_...
- Day Planner - Howard Kuan - Winter 2010
- Carman Violin Studio - Jesse Carman - Winter 2010
- MyComfort Product Tracker and Serial Number Genera...
- Financial Markets Update Service - Jason Merrill, ...
- MemoSend - Danny Patterson, Winter 2010
- Cinema Data Aggregator - Adam Solter, Winter 2010
- AutoRegister - John Wilson - Winter 2010
- VDC Requests - Kevin Brinkerhoff - Winter 2010
-
▼
April
(71)
No comments:
Post a Comment