PPT97: Main Street Demo Uses VBA for Interactive Slide ShowLast reviewed: March 9, 1998Article ID: Q166176 |
The information in this article applies to:
SUMMARYThe Main Street Market Demo demonstrates some of the capabilities of PowerPoint 97 and Microsoft Visual Basic for Applications. Much of the functionality of the presentation is archived through Visual Basic for Applications macro code. This Demo is available to download from the Microsoft Software Library (MSL):
~ maindemo.exe (size: 306269 bytes) 299 KB self-extracting fileWhen you run this file, you must use the -d switch to decompress the folder structure. For example, at the MS-DOS command prompt, type the following command:
maindemo -dThis self-extracting file contains the following files:
Demo.pps Items.mdb ReadMe.txt Blender.wmf Camcord.wmf Camera5.wmf Circus.wmf Clock.wmf Frnknstn.wmf Goggles.wmf Knife1.wmf Mousepad.wmf Needle.wmf Pliers.wmf Space.wmf Tree.wmf Videocas.wmfNOTE: This demo is not designed to run in PowerPoint 98 Macintosh Edition.
MORE INFORMATIONThe following information is the complete text of the Readme.txt file:
------------------------------------------------------------- Microsoft Main Street Market Demo for Microsoft PowerPoint 97 March l997 ------------------------------------------------------------- (c) Copyright Microsoft Corporation, 1997 CONTENTS
SYSTEM REQUIRMENTSThe Main Street Market Demo requires that you have the following components installed and running correctly:
Microsoft PowerPoint 97 Microsoft Jet Database Engine Version 3.5Both of these components are provided with Microsoft Office 97. Use the following steps to verify that the Microsoft Jet Database Engine is installed:
ABOUT THE MAIN STREET MARKET DEMOThe Main Street Market Demo demonstrates some of the capabilities of PowerPoint 97 and Visual Basic for Applications. Much of the functionality of the presentation is archived through Visual Basic for Applications macro code. The Main Street Market Demo creates slides "on the fly" based on choices you make during the presentation. For example, at the beginning of the presentation you are asked to enter your name. From that point, dialogs and certain slides are modified to reflect your name. This technique allows you to personalize and customize the viewing experience. The Demo creates a catalog of products sold by the fictitious company, Main Street Market. The catalog is created during run-time based on information in an Access database. You can modify the database to include different products. For more information, please see "The Catalog Database (Items.mdb)" section of this article. In the presentation, you can mark items you want to purchase. The items are added to your shopping cart. You can remove or delete items from the shopping cart. You can also view the contents of the shopping cart as long as the shopping cart contains at least one item. And, finally, you can purchase the items in the shopping cart.
HOW TO USE THE MAIN STREET MARKET DEMO
Getting Started
Welcome SlideFrom the Welcome slide you can view one of three catalogs: clothing, electronics, and hardware. To select the catalog, click the name or the circle to the left of the catalog you want to view. You can select multiple catalogs. When you select a catalog a check mark appears in the circle to the left of the catalog name. When you have selected the catalogs you want to view, click Next. The presentation creates the catalog using information that is stored in an Access database (.mdb) file. NOTE: The first time you create a catalog, it may take a moment. However, the next time you create a catalog, within the same slide show, the catalog will be created more quickly.
Catalog SlidesThe catalog slides show one product at a time. One slide is displayed for each item in the catalog. The following options are available when you view a product:
Add To Cart Adds the current product to your shopping cart. View Cart Displays the contents of the shopping cart, as long as there is at least one item in the shopping cart. Previous Goes back to the previous product in the catalog. Next Goes to the next product in the catalog. Start Over Rebuilds the product catalog. Shopping ChartThe Shopping Cart slide displays the items you selected from the catalog. To view the Shopping Cart slide, click the View Cart icon that appears on any catalog slide. You can make the following selections on the Shopping Cart slide:
Remove Item Removes the item from the shopping cart and updates the list of products. Previous Returns you to the catalog slide where you clicked View Cart. Buy Now! Purchases the items currently held in your shopping cart and then returns you to the Main Street Market splash screen. Start Over Rebuilds the product catalog. Exiting the DemoTo exit the Main Street Market presentation at any time, press ESC. If you receive a message asking if you want to save changes to Demo.pps, click No. This message is displayed because you are adding slides to the slide show during run-time. You do not need to save these changes.
THE MAIN STREET MARKET CODEMicrosoft provides examples of Visual Basic for Applications procedures for illustration only, without warranty either expressed or implied, including, but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The Visual Basic procedures in this demo are provided 'as is' and Microsoft does not guarantee that they can be used in all situations. While Microsoft support engineers can help explain the functionality of a particular macro, they will not modify these examples to provide added functionality, nor will they help you construct macros to meet your specific needs. If you have limited programming experience, you may want to consult one of the Microsoft Solution Providers. Solution Providers offer a wide range of fee-based services, including creating custom macros. For more information about Microsoft Solution Providers, call Microsoft Customer Information Service at (800) 426-9400. The Main Street Market demo is controlled by Visual Basic for Applications code. If you are interested in how the demo was created, use the following steps to view the Main Street Market demo code:
THE CATALOG DATABASE (ITEMS.MDB)The catalog is contained in an Access 97 database (.mdb) file. You can edit the Items.mdb file in Access 97 if you want to modify the images, descriptions, or prices that are displayed when you run the Main Street Market demo:
KNOWN ISSUESThe following is a list of the known issues with the Main Street Market demo.
HOW TO REMOVE THE MAIN STREET MARKET DEMOTo remove the Main Street Market demo, delete the following files which are installed by the Main Street demo program:
Demo.pps Items.mdb Blender.wmf Camcord.wmf Camera5.wmf Circus.wmf Clock.wmf Frnknstn.wmf Goggles.wmf Knife1.wmf Mousepad.wmf Needle.wmf Pliers.wmf Space.wmf Tree.wmf Videocas.wmf |
Additional query words:
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |