An Introduction to Excel VBA Programming
eBook - ePub

An Introduction to Excel VBA Programming

with Applications in Finance and Insurance

  1. 284 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

An Introduction to Excel VBA Programming

with Applications in Finance and Insurance

About this book

Excel Visual Basic for Applications (VBA) can be used to automate operations in Excel and is one of the most frequently used software programs for manipulating data and building models in banks and insurance companies. An Introduction to Excel VBA Programming: with Applications in Finance and Insurance introduces readers to the basic fundamentals of VBA Programming while demonstrating applications of VBA to solve real-world problems in finance and insurance. Assuming no prior programming experience and with reproducible examples using code and data, this text is suitable for advanced undergraduate students, graduate students, actuaries, and financial analysts who wish to learn VBA.

Features:



  • Presents the theory behind the algorithms in detail


  • Includes more than 100 exercises with selected solutions


  • Provides VBA code in Excel files and data to reproduce the results in the book


  • Offers a solutions manual for qualified instructors

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access An Introduction to Excel VBA Programming by Guojun Gan in PDF and/or ePUB format, as well as other popular books in Business & Finance. We have over one million books available in our catalogue for you to explore.

Information

Edition
1
Subtopic
Finance
Part II
Applications
7
Generating Payment Schedules
In this chapter, we implement a simple Visual Basic for Applications (VBA) program that can generate regular payment dates of an interest rate swap according to a business calendar. Figure 7.1 shows the interface of the payment schedule generator.
Image
Figure 7.1: Interface of the payment schedule generator
From 7.1, we see that the interface contains six input cells highlighted in yellow and one button. The output is shown in the first two columns. The first column shows the payment dates, and the second column shows the year fractions between these dates. The goal of this chapter is to implement the payment generator.
7.1 Introduction
A derivative (Garrett, 2013) is a concept in finance and refers to a contract that derives its value from the performance of an underlying entity, such as an asset, index, or interest rate. Derivatives have been used for risk management purposes. For example, insurance companies have used interest rate swaps to hedge the interest rate risks associated with variable annuity contracts.
An interest rate swap (IRS) is a financial derivative in which two parties agree to exchange interest rate cash flows, based on a specified notional amount. Under an IRS, each counterpart agrees to pay either a fixed or floating rate denominated in a particular currency to the other counterpart.
When p...

Table of contents

  1. Cover
  2. Half Title
  3. Title Page
  4. Copyright Page
  5. Dedication
  6. Table of Contents
  7. List of Figures
  8. List of Tables
  9. Preface
  10. I VBA Preliminaries
  11. II Applications
  12. A Solutions to Selected Exercises
  13. References
  14. Index
  15. Index of VBA Keywords