Skip to content

About

Data Analytics Boot Camp - Challenges

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Module02-Challenge-VBA

Data Analytics Boot Camp - Module 02 - VBA Scripting
VBA Challenge


Results

Screenshots of the results for each worksheet (per-Quarter stock summary and 'greatest' statistics) are given in the following files in the screenshots subfolder:

  • screenshot_VBA_Challenge_Result_Worksheet_Q1.png
  • screenshot_VBA_Challenge_Result_Worksheet_Q2.png
  • screenshot_VBA_Challenge_Result_Worksheet_Q3.png
  • screenshot_VBA_Challenge_Result_Worksheet_Q4.png

Implementation notes

The '.xlsx' files provided in this Challenge's Starter_Code were converted to '.xlsm' so they could store VBA source code.

Implentation development and testing were performed using the supplied alphabetical_testing data set. The '.xlsm' file and the extracted VBA code '.vbs' file from that stage are archived in the 'alphabetical_testing' subfolder.

Additional code comments were added to that VBA code to produce the final version saved as CalculateAndDisplayStockInformation.bas. That VBA code was loaded into Module1 in Multiple_year_stock_data.xlsm and run from there to produce the final results.

Assumption

In order to match the sample result provided in the 'Bonus' section of this Challenge, the 'greatest' stock is calculated on a per-worksheet (per-quarter) basis, not the 'greatest' overall.

References

The following references were used in the development of the solution for this Challenge.

Markdown

Used in developing the contents of this README.md file!

Git & GitHub

Excel VBA

Import .vbs file into Excel VBA editor

Export macro to .vbs file

Excel VBA get used range

Excel VBA get worksheets

Excel VBA call sub with parameters

Excel VBA module global constant

Excel VBA cell number format

Excel VBA cell percentage format

Excel VBA cell background color

Excel VBA Autofit

About

Data Analytics Boot Camp - Challenges

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages