Excel VBA and Business Objects

nickwilshaw

New Member
Joined
Apr 18, 2011
Messages
13
Hi guys,

I appreciate there is precious little documentation on the web about using VBA to control Business Objects but wondered if anyone could give me a little insight into this:

I want (if possible) to be able to auto-run Refresh All Objects when the workbook opens.

I have tried using the code:

Application.CommandBars(1).Controls("&LiveOffice").Controls(6).Execute

to no avail as this just states invalid procedure error.

My next step would be to autopopulate the date fields so as to run at the previous month end.

BTW, I'm using Excel 2007
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
We've recently upgraded to Excel 2010 and I have got the same issue now. How do I refresh my Live Office queries automatically using VBA.
The old solution doesnt work anymore:

Application.CommandBars(1).Controls("&LiveOffice").Controls(6).Execute

And I've not been able to find a solution that does work in Excel 2010.
Is there anyone who can help me with this?

Thanks in advance,
Ria
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,876
Members
452,949
Latest member
Dupuhini

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