{"id":22557529,"url":"https://github.com/vara-co/vba-challenge","last_synced_at":"2026-02-17T17:33:50.646Z","repository":{"id":215015958,"uuid":"736005406","full_name":"vara-co/VBA-challenge","owner":"vara-co","description":"VBA - Multiple Year Stock Analysis","archived":false,"fork":false,"pushed_at":"2024-01-18T19:53:58.000Z","size":9649,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T15:56:10.638Z","etag":null,"topics":["stock-market","ticker-symbols","vba","vba-excel","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/vara-co.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":"2023-12-26T17:54:38.000Z","updated_at":"2024-01-29T17:57:06.000Z","dependencies_parsed_at":"2025-03-28T11:42:17.588Z","dependency_job_id":null,"html_url":"https://github.com/vara-co/VBA-challenge","commit_stats":null,"previous_names":["vara-co/vba-challenge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vara-co/VBA-challenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vara-co%2FVBA-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vara-co%2FVBA-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vara-co%2FVBA-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vara-co%2FVBA-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vara-co","download_url":"https://codeload.github.com/vara-co/VBA-challenge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vara-co%2FVBA-challenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29551257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T14:33:00.708Z","status":"ssl_error","status_checked_at":"2026-02-17T14:32:58.657Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["stock-market","ticker-symbols","vba","vba-excel","vba-macros","vba-script"],"created_at":"2024-12-07T20:07:33.201Z","updated_at":"2026-02-17T17:33:50.619Z","avatar_url":"https://github.com/vara-co.png","language":"Visual Basic .NET","funding_links":[],"categories":[],"sub_categories":[],"readme":"--------------------------------------------------------------\n-----------      MULTIPLE YEAR STOCK VBA CODE       ----------\n\n-----------             READ ME FILE                ----------\n\n--------------------------------------------------------------\n\n--                    by LAURA VARA                         --\n\n--------------------------------------------------------------\n                SECTIONS IN THIS READ ME FILE\n---------------------------------------------------------------\nI.  - Documents in this repository\nII. - Instructions of the challenge\nIII.- References to the origin of the code\n\n______________________________________________________________\n--------------------------------------------------------------\n               I. DOCUMENTS IN THIS REPOSITORY\n--------------------------------------------------------------\n1) Folder with screen shots of:\n\t• A blank version of VBA Excel file before the code\n\t• 3 Screen shots. One per each year of stock to loop\n\t• 6 Screen shots. One per each section of the \n\tDeveloper Module with the code as it scrolls down.\n\n2) The Excel File with Macros enabled to view the VBA code\nfrom the Developer's tab\n\n3) A Visual Studio Code file with the full code for this challenge\n\n4) This ReadMe File\n______________________________________________________________\n--------------------------------------------------------------\n               II. INSTRUCTIONS FOR CHALLENGE\n--------------------------------------------------------------\n\n1) Create a script that lopos through all the stocks for one year\nand outputs the following information:\n\t• The ticker symbol.\n\t• Yearly change from the opening price at the beginning\n\tof a given year to the closing price  at the end of that \n\tyear.\n\t• The percentage change from the opening price at the \n\tbeginning of a given year to the closing price at the end\n\tof that year.\n\t• The total stock volume of the stock.\nNote: an image was provided that should match my results. Which\nby the end of my code, my file matches the image provided.\n\n2) Add functionality to your script to return the stock with the\n\t• Greatest % increase\n\t• Greatest % decrease\n\t• Greatest total volume\nNote: An image was provided that should match my results. Which \nalso does match my addition to the code.\n\n3) Make the appropriate adjustments to your VBA script to enable it\nto run on every worksheet(the current, and every year included) at once.\n\n4) Make sure to use conditional formatting that will highlight positive \nchange in green and negative change in red. \n\n_________________________________________________________________\n-----------------------------------------------------------------\n               III. REFERENCES TO MY CODE\n-----------------------------------------------------------------\nNote: If the code is referenced from a class, it will say \"Class\"\n-----------------------------------------------------------------\n\n• DECLARING THE WORKSHEET/VARIABLES/FINDING THE LAST ROW\nAll of this section was covered in Class. Mainly in the last two examples,\nthe Credit Card and the Census examples. This is where the \n\"For Each ws In Worksheets\" came in, allowing the code to pass to the\nnext worksheets in this document.\nThis is also where we learned about finding the LastRow.\n\n• THE LOOP\nAll of this section was covered in Class. Although it was tricky,\nthis part of the code came from the Credit Card and Census examples.\nUsing the ws before 'cells' and 'ranges' allowed me to pass all the \ncommands to the next worksheets.\nWe saw concatanation in class as well, which is shown in the values\nof the Summary Table Row. ws.Range(\"I\" \u0026 Summary_Table_Row).Value = Ticker\nColor formatting was seen in several exercises in class.\n\n**Note that in the loop, you'll find a comment with an additional code\nif I were to follow the grading segment  to add ($ Currency) to the Yearly Column.\nNote that your initial instructions to follow and match the images, do \nnot include a ($ Currency) symbol. So it was done in the comments.\nThat code was seen in class. It's in the Census code for correcting the\ncurrency format.\n\n• FORMATTING OUTSIDE THE LOOP\n**Number Format: \nhttps://www.educba.com/vba-number-format/\nhttps://www.mrexcel.com/board/threads/custom-number-format-with-special-character-macro.1089618/\n\n**Auto Fit Format:\nhttps://learn.microsoft.com/en-us/office/vba/api/excel.range.autofit\n\n• GREATEST % INCREASE, DECREASE AND GREATEST TOTAL VOLUME\nThis is pretty much the same as the above code, thus was seen in class.\n\n• MAX PERCENT INC/DEC/TOTAL VOL LOOP\nWe saw this in class. There was an exercise called Crypto Kennel pt3\nand also referenced with the credit card and census examples. It pretty\nmuch follows similar to the loop for the ticker.\n\n• OUTPUT THE VALUES IN THE 2ND SUMMARY TABLE\nFollows the same structure of the ticker Summary Table.\n\n• THE FORMATING\n**Number Format: \nhttps://www.educba.com/vba-number-format/\nhttps://www.mrexcel.com/board/threads/custom-number-format-with-special-character-macro.1089618/\n\n------------------------------------------------------------------------\n________________________________________________________________________\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvara-co%2Fvba-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvara-co%2Fvba-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvara-co%2Fvba-challenge/lists"}