uriarriaga / VBS_Excel_Stocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VBS Excel Stock

This repository is an examples of Visual Basic Code in Excel in some US Stock Data.

Objetive

The main objetive is to have a reference for future needs.

Instructions

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.

Test Image 3

Usage

The repository Contains two Files

  • .xlsm Contains the data and the Solved problem
  • .vbs The Visual Basic Code that Solve the problem

Steps

  • 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

About

License:MIT License


Languages

Language:VBScript 100.0%