This repository is an examples of Visual Basic Code in Excel in some US Stock Data.
The main objetive is to have a reference for future needs.
Create a script that will loop through all the stocks for one year and output the following information.
- The ticker symbol.
- Yearly change from opening price at the beginning of a given year to the closing price at the end of that year.
- The percent change from opening price at the beginning of a given year to the closing price at the end of that year.
- The total stock volume of the stock.
- Use conditional formatting that will highlight positive change in green and negative change in red.
- Add the stock info: "Greatest % increase", "Greatest % decrease" and "Greatest total volume" by Year.
The result should look as follows.
The repository Contains two Files
- .xlsm Contains the data and the Solved problem
- .vbs The Visual Basic Code that Solve the problem
- Open the .xlsm
- Go to the Develeoper Tab
- Click the Visual Basic Button
- Within the new Windows that pop up import de .vbs file
- Run the imported Code