I have a VBA function to convert amount to words. I would appreciate if someone can help me on how to create a .REA file (the add-in) and how to use the function in Business Objects Report.
To save your VBA code as an REA, simply do the “Save As” option. However, you cannot call VBA functions from within a report. In order to create custom functions that you can use in variables you have to write your code in C and link your object file with the BusinessObjects libraries.
You cannot use VBA (via add-in or otherwise) to create custom functions for use in Reporter formulas. You have to write a .dll using a “real” programming tool, place the file in a certain directory on the workstation, etc. Very cumbersome to implement and distribute.
I have a working custom function in VB that converts amount (a numeric value passed as parameter) to words. How can I use this in BO Report where I need to show the amount in words. I would really appreciate if someone can help me getting this thing done.
Cant I use like this =NumToWord(). Is there any workaround solution. Waiting for replies. Pls Pls this is stopping the show.
As I already said, you must write your code in “C” (I’m not even user that VB - as opposed to VBA - would work) and compile your library and link it to the BusinessObjects code. The file you link to changes based on the version…
Thanks a lot Scruffy,
Could you please explain me in more detail about the AfterRefresh function and how can I call my function by passing a parameter. Also pls tell me about stepping through the data and setting the values in a bocube.
Here’s a quick example of a BO Cube using the Beach Resort universe. The revenue is passed to a VBA function which increases it by 200, and then stores it in a BO Cube. This is then linked to the existing data provider, to display the increased revenue.