Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3353

use of Macros in BEx-IP planning workbooks

$
0
0

Hi,

I added following macro code in sheet "Sheet4 (BEx)" of BExAnalyzer and trying to assign this macro to a VB button inserted in workbook. But, i'm unable to find macro test123. what could be the reason?

Sub test123()

  Dim lResult As Long

  lResult = Application.Run("SAPExecuteCommand", "Refresh")

End Sub

 

Then, i tried same macro code in "ThisWorkbook" listed under "Microsoft Excel Objects" of VBA project of BI workbook.  Now, i am able to see macro test123 and assigned to VB button. But, when i click on VB button, i'm getting VB error 400. There must be something simple am doing wrong. Could someone point me in right direction or could someone share a sample of macro code as i'm actually trying to achieve "execution of planning sequence with variables by taking values from user inputs".


Viewing all articles
Browse latest Browse all 3353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>