Download Monitoring External Equity Mandates

Transcript
How to alter the code
When it is necessary to add an extra indictor or remove one in the future the guidelines in this chapter can
be of help. Following the steps below prevents that parts of the necessary changes will be forgotten. Both
for adding and removing components there are two different ways, one for indicators with a numerical
scale and one for indicators with a textual one.
To make it easier to find the places where code has to be added or removed, these bits of code are marked
in the following way:
Action performed: '
Corresponding step: '
ADD INDICATORS
NUMERICAL BUCKETS: STEP 3. NEEDS TO BE INSERTED BELOW.
' TEXT BUCKETS: STEP 2. NEEDS TO BE INSERTED BELOW.
Add extra indicators
When extra indicators are needed, they can be added in the following way. Before proceeding it is
recommended to close all excel sheets except for the tool. In this way it is easier to find the right places
for the codes.
WITH NUMERICAL BUCKETS:
Step 1
Two files need to be added in the folder “V:\Afdelingen\BEL\Portfolio\RIMOR\VBA INPUT FILES
NIET VERWIJDEREN” one is named “Example.txt” and the other “Example limits.txt”, where
“Example” has to be replaced by the indicators name.
The “Example limits.txt” file contains a set of numbers forming the upper limits of the buckets. The
“Example.txt” file holds the labels for the graphs.
In the limits files “Unknown” is represented by a value of “-1000” and “Cash” by a value of “-2000”. In
contrast to the label file, the limits file starts with “-1000” (“Unknown”) followed by “-2000” (“Cash”).
The label file ends with “Cash” followed by “Unknown”.
By changing both the labels and the upper limits, the buckets used by the tool are set to the desired values.
Important is that the last row in both files is not blank. It must end with “Unknown” (Label file) or with
the upper value of the last capped bucket (Limits file)
N.B.1: The last bucket, =>, is not mentioned in the limits file. Therefore this file is one row shorter. For
an example see picture 40.
N.B.2: The limits file only contains the upper value of the buckets.
Step 2
On the worksheet “Start” the Bloomberg code for the new indicator should be added to the first yellow
row below “Geef Bloombergcode en Excelformule:” and the corresponding formula to the second yellow
row.
N.B.1: If the formulas are hidden, click the “Toon formules” button.
N.B.2: The ranges in the code are in alphabetic order, so inserting new parts of code could lead to altering
all the blocks of code thereafter. So it is advisable to place new code as the last block to neutralize this
problem.
Step 3
Press <ALT>+<F11> to open the Visual Basic Editor. In the class module kAandeel, which can be
found in the “Klassenmodules” box within the “Project – VBAProject” window, the new indicator has to
be introduced by adding the following three pieces of code:
~ 24 ~