cancel
Showing results for 
Search instead for 
Did you mean: 

CONVERT TO FORMULA ANALYSIS for Excel in VBA BPC10.1

0 Kudos

HI!

How to execute convert to formula with VBA en analysis for microsoft excel.

I cant do that with record macro..ActiveWorkbook.Names("SAPCrosstab1").Delete

capture.png

Thank all!

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Kudos

Looks like there is no documented VBA interface to perform the functionality of "Convert to Formula"

Answers (3)

Answers (3)

0 Kudos

This button is in the "Analysis" tab in the top toolbar as you can see in the screenshot I attach you below. It is related to BPC NW when you open a query in ANALYSIS the data appear with its ID, and when you click on the button "convert to formula", the formula appear in the formula bar written. What we need is to know how to execute this button with VBA.

Thanks in advance,capture2.png

former_member186338
Active Contributor
0 Kudos

There is no API with the functionality of this button 😞

former_member186338
Active Contributor
0 Kudos

You can try:

Press Alt

You will see letters on the ribbon

Type required letters to finally press the required button. Remember the sequence of letters

Then use in VBA:

SendKeys "%", True ' ALT key
SendKeys "(Y1)", True 
...

Not a perfect solution but the button will be pressed.

0 Kudos

Thank you!

This is very usefull.

former_member186338
Active Contributor
0 Kudos

Unfortunately this is not a universal solution - will work only for Excel with the same number of custom tabs in the ribbon...

Former Member
0 Kudos

Hi Javier,

Are you deleting the crosstab with the VBA? If yes then the Convert to formula will not work.....as it works only on a cross tab...

Check this...http://help.sap.com/businessobject/product_guides/AMS11/en/11_aaoffice_user_en.pdf PG.no 13.

If not, please explain your error with a screenshot.

Regards,

JP

former_member186338
Active Contributor
0 Kudos

Sorry, but where did you found this button? How it's related to BPC NW?

Former Member
0 Kudos

Its for BPC Embedded 10.1. Analyis for Office.