Sapbex refresh

Aviad

New Member
Joined
Mar 22, 2011
Messages
11
Hello..

Today if i want to refresh a sap bex query in my excel file i need to go to the bex "add in" and click on the "refresh".

Is it posiblle to create a butten than have asighned macro that can refresh the query without enforcing me to go to the relevant "add in" ?

in the past i tried to write code as "sapbex.refresh" but it didn't work..
(i'm using excel 2010).

Thanks,
Aviad
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
What version of Excel are you using? I only ever used it with Excel 2003.

I used to run it with something like:

Code:
Application.CommandBars.FindControl(ID:=[COLOR="Red"]###[/COLOR]).Execute

You need to know the ID or caption of the control though, and this assumes you are not running excel 2007+.

EDIT: Just noticed you are on 2010. I will post back when I work out how...
 
Upvote 0
Thanks!

I'm waiting for the answers.. (-:

meanwhile i think that the first answer might work in 2010 also.. how can i find the command ID ?

Aviad
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,462
Members
452,915
Latest member
hannnahheileen

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