Spreadsheet Models for Managers


Getting Access to Spreadsheet Models for Managers


ISpreadsheet Models for Managersf you use Excel to model businesses, business processes, or business transactions, this course will change your life. You'll learn how to create tools for yourself that will amaze even you. Unrestricted use of this material is available in two ways.

As a stand-alone Web site
It resides on your computer, and you can use it anywhere. No need for Internet access.
At this Web site
If you have access to the Internet whenever you want to view this material, you can purchase on-line access. Unlimited usage. I'm constantly making improvements and you'll get them as soon as they're available.

To Order On Line

Order "Spreadsheet Models for Managers, on-line edition, one month" by credit card, for USD 69.95 each, using our secure server, and receive download instructions by return email.
Or order via Google Checkout.
Order "Spreadsheet Models for Managers, on-line edition, three months" by credit card, for USD 199.00 each, using our secure server, and receive download instructions by return email.
Or order via Google Checkout.
Order "Spreadsheet Models for Managers, downloadable hyperbook edition" by credit card, for USD 199.00 each, using our secure server, and receive download instructions by return email.
Or order via Google Checkout.

To Order by Mail

Make your check payable to Chaco Canyon Consulting, for the amount indicated:
  • For the download: USD 199.00
  • For access online for three months: USD 199.00
  • For access online for one month: USD 69.95
And send it to:
Chaco Canyon Consulting
700 Huron Avenue, Suite 11J
Cambridge, MA 02138

To use the course software you'll need some other applications, which you very probably already have. By placing your order, you're confirming that you have the software you need, as described on this site.

Subscribe now!

Spreadsheet Models for Managers


Demonstrations for Session 13
Using Macros I


Class notes
PowerPoint Slides:
   2000-4 or 2007+
Excel Solution:
   2000-4 or 2007+
Excel Example:
   2000-4 or 2007+
We have one demonstration (2000-4 or 2007+) for this session: How to Write Function Macros in VBA.

How to Write Function Macros in VBA (2000-4) or (2007+)
[Sheet: Examples]

Here are four examples of simple function macros.

EOQ

The EOQ macro implements the formula for EOQ. You can view the macro source code as follows:

The EOQ macro is a simple function macro, the first one in the module. It uses the VBA function Sqr to compute the square root. To find VBA functions, look in the Visual Basic on line help, for the volume called "Visual Basic Language Reference" and, within that, look for "Functions." The work we'll do with macros won't require knowledge of VBA functions.

DoNothing

This macro illustrates how to return objects. As it happens, this macro does nothing. But if you want to return an object, the assignment statement must use "Set".

GeometricMean

The geometric mean of two numbers is the square root of the product of the two numbers. This function macro implements it. Notice the choices of function names and argument names. Names can be any string of alphanumeric characters and underscores, starting with letters. Case doesn't matter. In our example, we've chose names that are designed to make the macro easy to understand, without the need for extensive commenting. Managers of groups of people who make spreadsheet models should ensure that function and variable names are chosen with these factors in mind.

Depreciation

Here's an implementation of the depreciation schedule generator that supports the Ripple Principle. It's analogous to what we did in the examples for Session 8. It uses Caller, a property of the Application object that holds the cell that invoked the function. It also uses Column, a property of a cell object. Both of these property invocations illustrate how VBA uses postfix notation to access properties of objects. To test your understanding of Caller, write a worksheet function that returns twice the value of the cell to the right of the caller.

For more about my spreadsheet consulting and training services, visit SpreadsheetAce.com.

Last Modified: Wednesday, 22-Oct-2008 05:31:20 EDT

Feeling queasy about spreadsheets?
We run our companies, in part, based on spreadsheets, yet we often wonder if they're really right. Learn more about improving the reliability and effectiveness of your financial models.
More
Sign Up for the On Line Version of This Course
With dozens of solved problems and special course tools, this course can dramatically increase your spreadsheet skills. For just USD 199.00 you receive three months of access with unlimited email support. Learn more about improving your spreadsheet sophistication and effectiveness.
More
Get the Hyperbook Edition of This Course
Identical to the edition you're viewing, but with dozens of solved problems and special course tools, and it stands alone — no Internet connection required. For just USD 199.00, it includes three months of unlimited email support. Learn more about improving your spreadsheet sophistication and effectiveness.
More