Macro for Essbase data retrieval

dsch1984

New Member
Joined
Oct 29, 2015
Messages
1
Hi,

I am ultimately trying to automate/schedule a data retrieval from Essbase.

I started with a macro that works perfectly. Sample code:

Sheets("Sheet1").Select
range("B1:b1").Select
ActiveCell = j
application.Run macro:="EssMenuVRetrieve"

This macro will run in about 0.5 seconds and retrieves the data perfectly.

Next I wrote a .bat and vbScript file to automate the process. but this will not work.

Everything runs fine up until the EssMenuVRetrieve line of code. I know this because I put in sample code before and after to write some text to two cells for testing purposes.

When I run the batch file, it calls the macro as I want, executes the code upto EssMenueVRetrieve and then just hangs infinitely. No data comes back. And no code after it gets executed.

Please help as this will be a great benefit to me and I cannot understand the issue going from a working macro to a not working vbscript.

Thanks
Eddie
 

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top