As part of BO migration, we have migrated universe and reports to Xi R2 and there are VBA Macro based reports which are being scheduled in 6.5 using BCA and is there any option available to schedule a VBA macro code. Options I am thinking o f:
Have the VBA code in AFTERREFRESH() and schedule the report in CMC - But the issue is even if the end-user opens and refresh reports from his deski, the VBA would run.
Create a VBS file and schedule as Object in CMC. Not working out properly.
Write a Java script to do the same work
Which is easiest option …and let me know in case if anyother options available.
Macros do not work in Unix setups. If you are a Windows shop then the Macros should work.
Also, you can use alternate solutions whichever may be feasible for your environment.
a) Depending on your server setup, you can use XI Scheduler and use built in features of it.
b) You can use different programming (.NET/JSP/ Java Script/ VB Script), for this you have to make sure the settings are done correctly on your Program Job Servers.
Running reports with embeded VBA macros should not be a problem when running in DeskI, though there can be few changes depending upon the code written.
But running the same in Infoview is not the same as in BCA 6x and without drawbacks.
You can however get around it by invoking full client DeskI to fully utilize the VBA macro, using command line options and the same batch file scheduled or force run in Infoview. It will simulate the BCA functionality.
Whenever we user application.visible or any application., the CMC or INFOVIEW scheduler does not pickup Before and After refresh macro and require re-start of deski job servers.
That’s strange, I seem to recall that I was able to get macros that uses application.visible property to work on SP4.
What does you macro do? Maybe posting your code may help.
Have you tried executing just the peice of code with the application.visible? Did that execute properly?