Skip to content

OlegRyzhkov2020/VBA-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VBA-challenge

VBA-challenge is a Stock Market Analysis VBA Module for Excel.

Excel GitHub top language made-with-Markdown HitCount GitHub watchers GitHub followers

Excel

Installation

The module uses Microsoft Excel. Get it now with a Microsoft 365 subscription

https://www.microsoft.com/en-us/microsoft-365/excel

Please, provide the full path and name for the data file source. By default the provided file below will be used

Control_Panel

Usage

As a first step, the module imports data from the Source Workbook and loops through all the stocks for each year over all Worksheets (see VBA script extract sample below)

'Open Source Workbook
Application.ScreenUpdating = False
Application.DisplayAlerts = False

file_Name = Range("E7")
Set wk = Workbooks.Open(file_Name, ReadOnly:=True)

'Iteration Source Workbook over all sheets
For Each sheet In wk.Worksheets

'Getting Last row number for data on active sheet
    sheet.Activate
    last_Row = Cells(Rows.Count, 1).End(xlUp).Row

The summary table outputs 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.

The solution is able to return the stock with the "Greatest % increase", "Greatest % decrease" and "Greatest total volume" per each year. Summary

Contacts

Find Me on LinkedIn

About

The VBA of Wall Street, Stock Market Analysis

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published