Book Image

Excel 2010 Financials Cookbook

By : Andre Odnoha
Book Image

Excel 2010 Financials Cookbook

By: Andre Odnoha

Overview of this book

<p>Excel is one of the mostused software tools in the world and just about every business has a copy somewhere. Despite its power and flexibility it is not always clear how to use it to perform some of the most important tasks in any business: organizing, analysing, and presenting financial information.<br /><br />Excel 2010 Financials Cookbook contains a rich collection of useful techniques for handling financial data in Excel. From integrating data from a variety of different sources, through organazing and analyzing financial data, to presenting it in a variety of graphical forms, this book has you covered.<br /><br />The book deals first with "normalizing" financial data -- that is, bringing data from a number of different sources into a single format where you can analyze them together. Then you'll learn techniques for managing and analyzing the data before discovering ways to present it graphically. The book then looks at Excel's built in features for financial analysis, and even shows how you can combine the built in features to build your own analysis functions.</p>
Table of Contents (14 chapters)
Excel 2010 Financials Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding username and password options for securing financial functions


When working with customers to calculate payment information, it is often necessary to change loan parameters to meet customer needs. Although making these modifications is important, you may want to limit the users who have the ability to make these changes.

In this recipe, you will add a button to change the interest rates for a loan, which will ask you for a username and password before allowing the change to be made.

Getting ready

This recipe will begin with an existing worksheet that has information entered for calculating loan payment. The interest rate is in cell B8:

How to do it...

We will begin by creating the code that will prompt for a password as well as ask for the new interest rate:

  1. 1. Begin by pressing Ctrl + F11 on the keyboard to open the Visual Basic Editor (VBE). From the VBE toolbar, choose Insert | Module to add a new blank module:

  2. 2. Enter the following function code:

    Public Sub interest_change()
    Dim strPass...