Place the cursor over this icon to load and view all the screenshots for this tutorial.
(Caution: This action loads all screenshots simultaneously, so response time may be slow depending on your Internet connection.)
Note: Alternatively, you can place the cursor
over an individual icon in the following steps to load and view only the screenshot
associated with that step. You can hide an individual screenshot by clicking it.
Overview
This tutorial introduces the VBA toolkit for Smart View. Smart View enables you to customize and automate common tasks by using VBA functions. The menu equivalents are Visual Basic functions that execute the Hyperion menu commands.
In this tutorial, you use the VBA toolkit to create buttons on a Smart View worksheet. The buttons connect to, and disconnect from, a data source.
Your users have asked you, a Smart View administrator, to create an easy way for them to connect to, and disconnect from, their most common applications.
Before you can use Visual Basic functions in an Excel project, you must declare them in a module. A declaration outlines the necessary elements of the function so that Visual Basic can run it. You can declare only those functions that you plan to use, or you can declare all functions.
In this topic, you declare all VBA functions by importing the smartview.bas file.
1.
In Excel, select Tools > Macro > Visual Basic Editor.
Visual Basic Editor opens in a separate window within Excel.
2.
Select File > Import File.
3.
Select c:\Hyperion\SmartView\Bin\smartview.bas, and click Open to import the file.
This file contains all Smart View VBA functions. By importing it, you are declaring all functions ready for use. You can also declare only those functions that you know you will use by deleting unused functions in the .BAS file.