{"id":24562668,"url":"https://github.com/wrighang/02_vba-challenge","last_synced_at":"2026-01-03T06:38:34.004Z","repository":{"id":260159716,"uuid":"862538408","full_name":"wrighang/02_VBA-challenge","owner":"wrighang","description":"Module 2: VBA","archived":false,"fork":false,"pushed_at":"2025-01-04T18:53:15.000Z","size":18010,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T09:16:49.467Z","etag":null,"topics":["for-loop","vba-macros","vba-script"],"latest_commit_sha":null,"homepage":"","language":"Visual Basic .NET","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wrighang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-24T19:09:02.000Z","updated_at":"2025-01-04T18:53:18.000Z","dependencies_parsed_at":"2024-10-29T23:08:50.009Z","dependency_job_id":null,"html_url":"https://github.com/wrighang/02_VBA-challenge","commit_stats":null,"previous_names":["wrighang/02_vba-challenge"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrighang%2F02_VBA-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrighang%2F02_VBA-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrighang%2F02_VBA-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wrighang%2F02_VBA-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wrighang","download_url":"https://codeload.github.com/wrighang/02_VBA-challenge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243945623,"owners_count":20372897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["for-loop","vba-macros","vba-script"],"created_at":"2025-01-23T09:16:57.820Z","updated_at":"2026-01-03T06:38:33.959Z","avatar_url":"https://github.com/wrighang.png","language":"Visual Basic .NET","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 02_VBA-challenge\n\n# Deliverable(s)\n1. [Screenshots of the results](https://github.com/wrighang/02_VBA-challenge/tree/main/results%20images)\n2. [Separate VBA script files](https://github.com/wrighang/02_VBA-challenge/tree/main/vba%20script%20files)\n3. [README file](https://github.com/wrighang/02_VBA-challenge/blob/main/README.md)\n4. [EXTRA - xlsm file](https://github.com/wrighang/02_VBA-challenge/blob/main/Multiple_year_stock_data_Angelina.xlsm)\n\n## Instructions\nCreate a script that loops through all the stocks for each quarter and outputs the following information:\n\n- The ticker symbol\n- Quarterly change from the opening price at the beginning of a given quarter to the closing price at the end of that quarter\n- The percentage change from the opening price at the beginning of a given quarter to the closing price at the end of that quarter\n- The total stock volume of the stock\n- Add functionality to your script to return the stock with the \"Greatest % increase\", \"Greatest % decrease\", and \"Greatest total volume\".\n- Make the appropriate adjustments to your VBA script to enable it to run on every worksheet (that is, every quarter) at once.\n\n\n## Requirements\n\n### Retrieval of Data\nThe script loops through one quarter of stock data and reads/stores all of the following values from each row:\n- Ticker symbol\n- Volume of stock\n- Open price\n- Close price\n\n### Column Creation\nOn the same worksheet as the raw data, or on a new worksheet, all columns were correctly created for:\n- Ticker symbol\n- Total stock volume\n- Quarterly change ($)\n- Percent change\n\n### Conditional Formatting\nConditional formatting is applied correctly and appropriately to:\n- Quarterly change column\n- Percent change column\n\n### Calculated Values\nAll three of the following values are calculated correctly and displayed in the output:\n- Greatest % Increase\n- Greatest % Decrease\n- Greatest Total Volume\n\n### Looping Across Worksheet\nThe VBA script can run on all sheets successfully.\n\n### GitHub/GitLab Submission\nAll three of the following are uploaded to GitHub/GitLab:\n- Screenshots of the results\n- Separate VBA script files\n- README file\n\n==================================================================================\n## CODING_PROCESS\n\nReset Button- Andrew Lane provided this code in a study group we had with several classmates over the weekend and I used it after I had completed the assignment as it was very helpful to reset using a macro versus manually deleting the results\n\nGreatest% Increase/Greatest Decrease- I researched how to write a code that would look up the maximum and minimum values. Initially, I struggled with the formula for calculating the greatest total volume and reached out to Andrew for advice, assuming the issue was related to the min/max formula and worked on that for awhile which you can see in my code the various attemps i was making with the max code for the volume. However, it turned out that the problem was with how I was resetting the volume for the total stock volume calculation. I had originally placed the volume = 0 reset after the loop, but while adjusting things to test different outputs, I mistakenly moved it before the loop without realizing how this affected the results. I didn’t notice the incorrect output until much later.\n\nMessage Box- Since the code takes some time to run, I added a message box at the end to display a notification when the code has finished running.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrighang%2F02_vba-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwrighang%2F02_vba-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrighang%2F02_vba-challenge/lists"}