Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-gq7q9 Total loading time: 0 Render date: 2024-07-20T17:18:32.928Z Has data issue: false hasContentIssue false

11 - Visual Basic Editing and Code Development

Published online by Cambridge University Press:  05 August 2013

Elliot Bendoly
Affiliation:
Emory University, Atlanta
Get access

Summary

Many effective decision support systems rely not only on the ability of a manager to present information, analysis, and meaningful dynamics (for example, through graphics), but also on enabling users to realize the intended use of those elements by themselves (without the developer holding their hand). This is often going to mean providing sufficient documentation that might go beyond cell labeling and embedded comments. It may mean coming up with some kind of a customized user-driven help or wizard component as part of the DSS that makes use of not only automated numerical and graphical demos, but also other objects, such as images and .wav files, which could be incorporated into the workbook. This is often going to mean a level of automation that stretches the limits of the kind of work that can happen at the spreadsheet interface alone. In fact, it may be impossible to achieve by using only the top layer of an Excel workbook. Let's see how macros and the Visual Basic (VB) Editor might provide us with some new options in this regard.

The Visual Basic Editor

Let's take a deeper look into one of the first macros I introduced. Opening the Chp8_LobosInventory workbook provides us with an opportunity. To see the code associated with this macro, select the Developer tab on the main menu bar and then select Visual Basic (which will open the general VB Editor screen) or click Macros (see Figure 11.1), and from the associated dialog box select the specific name of the program code you are interested in viewing (in this case, generically called Macro1) and then Edit.

Type
Chapter
Information
Excel Basics to Blackbelt
An Accelerated Guide to Decision Support Designs
, pp. 291 - 333
Publisher: Cambridge University Press
Print publication year: 2013

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×