Macro not working in BEx Analyzer

Can you please explain why my Macro is not working?
We're on BI 7 with Excel 2007. I have done the following:
1) Open Workbook from BEx Analyzer and the result display on the worksheet. The was inserted in C10 and therefore, the result was display from C10 onwards.
2) I have created a Macro with the following code:
Sub Macro1()
' Macro1 Macro
    Range("C5").Select
    With Selection.Interior
        .Pattern = xlSolid
        .PatternColorIndex = xlAutomatic
        .Color = 65535
        .TintAndShade = 0
        .PatternTintAndShade = 0
    End With
End Sub
3) When click to run the Macro manually, I can see the color of C5 is changed.
4) Now I have include this Marcro in Workbook Setting ->Exits tab, Run Macro on Refresh. Here I enter my Marco name.
5) In Workbook Setting ->General tab, I also set the Refresh Workbook on Open option.
6) I have also set the Trust Center setting: select Trust access to the VBA project and Enable all macros.
7) Then I save the Workbook.
8) when I re-open the Workbook, the color of C5 is not change!!!
Can you please help.

Aglukas,
Thanks again. I understand the name of the Macro can be anything and this is how to create the Macro:
1) Run workbook, the query result display on the screen.
2) In Excel 2007, I click on Developer tab ->Macro.
3) Enter Macro name (Macro1) and click on Create button.
4) I have VB editor open with following:
Sub Macro1()
End Sub
5) So added the following code to Macro routine in VBA Module:
Sub Macro1()
With ThisWorkbook.Sheets("Sheet1")
Stop
.Activate
.Cells(15, 1).Interior.Color = RGB(220, 254, 250)
End With
End Sub
6) I then added the Macro1 to Workbook Setting ->Exit tab, and click on Add Macro button.
When I run/refresh the workbook, I didn't get into debug mode at all!!!
What is wrong in above steps?
Please advice, thanks.

Similar Messages

  • Macro not working in BEx Analyzer (Refresh selection Screen)

    Hi All,
    We have migrated work book for 3.x to 7.x and work book having lot of macros calculated and using multiple quires in single work books for inpt selection screen written Macro same macro is not working after Migration to 7.x
    7.X Macro code below..
    Sub BW_Prod_Year_Summary()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E9")
    End Sub
    Sub BW_Prod_Year_Summary_Period()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G9")
    End Sub
    Sub BW_Query_for_YTD_and_Monthly_View()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J9")
    End Sub
    Sub BW_Prod_Perform_prev_month()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("M9")
    End Sub
    Sub BW_Prod_Perform_prev_month_Detail()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("P9")
    End Sub
    Sub BW_3_Months_Volume_Comparison()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("S9")
    End Sub
    Sub BW_Query_for_Current_RE()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E40")
    End Sub
    Sub BW_Query_for_Previous_RE()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G40")
    End Sub
    Sub BW_Query_for_Business_Plan_this_year()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J40")
    End Sub
    Sub BW_Query_for_Actuals_last_year()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("M40")
    End Sub
    Sub BW_Query_for_Forecast_next_year()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("P40")
    End Sub
    Sub BW_Query_for_Forecast_Accuracy()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("S40")
    End Sub
    Sub BW_PDR()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E132")
    End Sub
    Sub BW_SDR()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G132")
    End Sub
    Sub BW_TDQ()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J132")
    End Sub
    Sub BW_SSDR()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("M132")
    End Sub
    Sub BW_DDR()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("P132")
    End Sub
    Sub BW_Blocked_Stock()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E195")
    End Sub
    Sub BW_Age_of_Stock()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G195")
    End Sub
    Sub BW_Historical_WOS()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J195")
    End Sub
    Sub BW_Current_WOS()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("M195")
    End Sub
    Sub BW_Current_WOS_Details()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("P195")
    End Sub
    Sub BW_Historical_STO()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("E243")
    End Sub
    Sub BW_Future_STO()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("G243")
    End Sub
    Sub BW_Product_Groups()
    Run "BExAnalyzer.xla!SAPBEXrefresh", False, Range("J243")
    End Sub
    Please help me on this..!!
    Thanks
    Prakash

    Aglukas,
    Thanks again. I understand the name of the Macro can be anything and this is how to create the Macro:
    1) Run workbook, the query result display on the screen.
    2) In Excel 2007, I click on Developer tab ->Macro.
    3) Enter Macro name (Macro1) and click on Create button.
    4) I have VB editor open with following:
    Sub Macro1()
    End Sub
    5) So added the following code to Macro routine in VBA Module:
    Sub Macro1()
    With ThisWorkbook.Sheets("Sheet1")
    Stop
    .Activate
    .Cells(15, 1).Interior.Color = RGB(220, 254, 250)
    End With
    End Sub
    6) I then added the Macro1 to Workbook Setting ->Exit tab, and click on Add Macro button.
    When I run/refresh the workbook, I didn't get into debug mode at all!!!
    What is wrong in above steps?
    Please advice, thanks.

  • Working in BEx Analyzer but giving error dump in Web Analyzer

    Hello Experts,
    I have a BEx Query, that has couple of customer exits for initial filter selection, and some base KFs and conditions as part of definition. When I run this query in RSRT or in Bex it was running fine, and results showing up in 3 to 5 seconds hardly 10 seconds.
    but the same query throwing error in Portal / Web Analyzer.
    error contains;
    Error Summary : error processing the current request
    root cause: The initial exception that caused the request to fail was:
    java.lang.UnsupportedOperationException
    Messages: warning there is a condition on Plant and Material to suppress results.
    contest: under this heading many line of HTML code
    when I debug the query in RSRT, I found any issue, all the exits, and the query is quite OK.
    does anyone has any idea, whats going wrong?
    we cannot suspect the portal / Java patches or anything, Because we have other queries running good.
    could someone give me some idea..how to go through this portal/web related errors.?
    Appreciate your time and help

    Thanks for your help.
    This issue was caused by "Bad programming in Customer Exit". Exit is trying to give too many Single values as selection to certain batch characteristics plus some are redundant. So code logic modified to fetch distinct values hence problem solved.
    it worked in BEx analyzer but not in Web is just because of its limitations. As I said there is no syntax errors in the exit rather bad logic.
    Thanks Again

  • WinHelp, Windows 8 and Ultrabook - macros not working

    Our products are generated for WinHelp 2000 using RH9 for Word
    The user has symptoms typical of macros not working. This has normally been caused by the user not properly doing the step described in the Knowledgebase article at http://support.microsoft.com/kb/917607 regarding " How to enable macros on a single computer after you install the WinHlp32.exe"
    I have updated a machine to Windows 8, performed the Knowledgebase article items and our products work fine. I have also verified that the user's machine has the correct registry settings, so it looks like Windows 8 is not the culprit. That leaves the Ultrabook
    This combination of Windows 8 and Ultrabook is quite new and I am hoping someone using WinHelp 2000 has already run into it.
    Please let me know if so.
    Thanks

    David
    On rereading this, I am not sure I follow.
    You say "I have updated a machine to Windows 8, performed the Knowledgebase article items and our products work fine."
    So on your machine it is OK but not on that of a user who has an Ultrabook, is that the case? If so, I'm not sure how to help as it is machine specific. Are you 100% sure they downloaded the right viewer and installed it with admin rights?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • IP - Issues with Input Query: Works on Bex analyzer but not on Web

    I am doing the following:
    Created a Aggregation level for a multi provider which has only real time infoproviders associated with it
    Created the query using Bex Query Designer availing all the options for planning
    When I execute this query it executes using a web template and does not open up the Key Figure cells for input, I had tried using the Web Application designer with Save button but still the same issue
    I tried the same on Bex analyzer and it works fine
    Please help to resolve the above issue.
    Thanks in advance.

    Hi Ram,
    Cells should be input enabled on the web just running the query. No need to create a Webtemplate, altough you need to have the webtemplate to be able to use the "save data" function.
    Maybe your query is not input ready at all, and you're misinterpreting analyzer layout.
    To test this, please enter some plan data in analyzer, right click and choose "save".
    Please check if data is written to the real time infoprovider.
    Hope this helps you.
    Regards,
    Miguel P.

  • Filters are not working in Bex report

    Hi All,
    I got a strange issue in my project.
    There is a report in Bex analyzer, after got the report result user trying to put filter on one navigational attribute, unfortunaltely filter is not working.
    For example:
    User ran the report and got the output, now user tried to filter on country with the value"India", but the report showing all the countries in the result.
    What could be the problem, I have checked all the settings.
    I did not get any clue. Could you please throw some light and help me.
    Thanks & Regards,
    Venkat

    Hi Rama,
    I mean, it is working fine in listcube and variable screen, but it is not working while filtering data in report output.
    Please advice me how to solve this.
    Thanks & Regards,
    Venkat

  • Variable window not showing through BEx analyzer

    HI Experts,
    I am facing a weired situation with one of the variable.
    I have a Customer Exit variable which is Input Ready and entry is Mandatory, i wrote some code in CMOD to fetch default values through I_STEP=1 and my requirement is that user should able to change the values if needed.
    now, the problem is, I can able to get the variable input screen when i execute the query through RSRT with Query display mode as HTML. But when i execute the same query in BEx analyzer or through RSRT with different Query Display modes like List/Bex Analyzer am not getting the variable input screen.
    The variable is taking the default value generated through CMOD code and the same values are being used in determining the query output..
    Please suggest me what do i need to do inorder to view the Variable input screen in BEx analyzer.
    I am using BEx Analyzer 3.x for the queries and working with
    SAP Version   -
       SAP EHP 1 for SAP NetWeaver 7.0
    DB:                  -
       ORACLE 11.2.0.2.0
    OS                   -
        AIX

    I found the solution in one of the SAP notes and the issue is resolved.
    We used Note: "1609237" to resolve the issue. Hope this might help anyone who faces this same problem..

  • Condition - Query Designer not working in BEx

    Hi all,
    I have used Condition in my Query in Query designer. it is to calulate the top 10 customer. when i execute the report in RSRT , condition is not working properly.
    But, at the same time , i am executing my same query on portal and condition is working on portal.
    We are on EHP 1 . please suggest.
    Regards,
    Macwan James.

    Hi James,
    There are certain functions about condition which are only available for 7.x runtime (Java Web, Portal) and are not available for 3.x runtime (transaction RSRT, BEx Analyzer, ABAP Web).
    For example this one:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/2695d2fd2f0d23e10000000a1553f7/frameset.htm
    ●      Most Detailed Characteristic Along the Rows or Columns
    This option is optimized for threshold value conditions. The condition is applied to the most detailed characteristic of the rows or columns.
    Note that this function is not supported when executing the query in the BEx Analyzer.
    If you have set to "Most Detailed Characteristic Along the Rows or Columns" in Query Designer, portal would execute properly according to this setting while RSRT would use one of the other two settings (seems to be "Single Characteristics and Characteristic Combinations" as I remember) which lead to unexpected result. This is my assumption how it is in your case.
    Regards,
    Patricia

  • Query not Opening using Bex Analyzer

    Hi Experts,
    We have developed queries in Designer, and we can execute them from query designer.
    But if we try to run the query from Bex Analyzer no query output comes.
    Output comes as No Data Available.
    This issue is happening from past 3 days..before that we were able to execute from Analyzer also.
    I am wondering has any setting is changed.
    Kindly suggest , as this is very important for us to solve ASAP.
    Thanks
    Mayank

    Hello,
    After applying the latest patches for core GUI and BI components, and the MS Office patch (sap Note 1025122), it should work correctly. I have faced the same issue and corrected it by applying these patches. (The MS office that I am using is MSOffice2003.)
    Can you try opening the analyzer from the start menu, instead of using transaction RRMX?
    If this way it is working correctly, then the softwares pieces are setup correctly.
    Then you may want to check the customizations of your BI system. i.e. IF it was upgraded from the BW3.5 system? What strategy are you using for the report migration? The administrator might have changed the settings according to the strategy and current phase of the report migration.
    Regards,

  • Query Not Running Via BEX Analyzer Role Menu

    Hi All,
    I have a problem when executing queries via the BEX Analyzer role menu. I can select a query from a role but, when I select the query to run, nothing happens. When I select the same query from the infoarea it runs without any problems. This behaviour occurs for all our queries so is not specific to a particular query.
    We're running on version 3.5 and I've just upgraded to the latest patch but this hasn't helped at all.
    If I use the role menu via the web application designer the queries all work fine so the problem looks to be pointing at the role menu within BEX Analyzer.
    Any ideas ?
    Dave

    this issue is more related to Security , Roles & authorisation.
    u will have to talk to Security team.
    While installing latest patch,usuallys uch trouble occurs.
    the excel extensions , roles gets affected sometime..

  • Macro not working for Word.

    My macro is not working for Microsoft word. Its showing some macro settings issue. Please help.

    Hi,
    The macro you mean is Macro Recoder, isn't it? As far as I know, this product may be not compatible with Windows 8.1. I found the link below show its system requirements:
    http://www.jitbit.com/docs/macrorecorder/index.htm
    In addition, it would be better to contact Macro Recoder support for further assistance:
    http://www.jitbit.com/support/
    Roger Lu
    TechNet Community Support

  • User Variables values are not showing in Bex analyzer

    Dear Friends,
    I created a report in Bex analyzer ( Excel).
    Now i want to show the variables values in the report.
    i put text item there and click on it but in filter tab there is no variable is exist.
    Any help will be highly appricated.
    Regards
    Naeem

    dear i know how to display the variable values.
    But unfortunatilly there is nothing appear in filter tab.
    my variables are not in filter tab its empty.
    i already choose the data provider.
    regards
    Malik

  • Zero Suppression Not working in Bex Query with Formula Variable

    Hi Friends,
    I have a peculiar issue here. We upgraded from 3.5 to 7.0 recently. Some of our Bex queries have been behaving abnormally after this. In these queeries,
    we have some key figures which use formula variables (ready for input and mandatory) in 3.5. User can enter either 1 or 0. The actual key figure is multiplied to the formula variable so, the entire column gets the actual key figure value if the user enters a value '1' and the gets the value 0 if the user enters '0' in the formula variables. Zero suppression is activated on the rows and columns and this report. This technique was used successfully to show/hide a column.
    After upgrade, the same query works but, the zero suppression is not working. When the user enters a value of '0' in these formula variables, all the entries in the column for the key figure are displayed as 0 but the column is still displayed. It is like the zero suppression setting is not active at all.
    I created one of those queries in Bex 7.0 to see if that works but, the issue still exits. Have anyone come across this kind of a scenario? Please get back to me if anyone has any idea on this situation.
    Thanks and Regards
    Subray Hegde

    Which SP level are you at in BI 7? There is an OSS Note that would need to be applied if you're on lower than SP10. That note is:
    [OSS Note 964756 - Formula variables with replacement from difference in BI 7.0|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=964756]

  • Excel Filter not working in Bex

    Hi All
    I have a report in Bex where I have a date field called basic date. Now when user is trying to select some basic function like greter than or less than a particular date(When we apply filter in excel we have the optioon Custom where so many option like greter than, less than, equals are available). It is giving blank value. I tried to change the format to date but still not working.
    Please suggest.
    Sunny

    Hi Sunny,
    The problem occurs if you set your auto filter in the wrong cell. I have found the easiest way to get auto filter to trigger in the correct cell is to click on a blank cell (i.e. outside of the analysis grid) and then switch on auto filter in Excel as normal. You should find that the filter icons appear in a different set of cells and when you use them they will contain the values in the columns.
    Hope this helps!

  • Local formula created in web analyzer not reflected in bex analyzer.

    Hello all,
    I had created a Local formula in the web analyzer and saved the query as a view. Now, when I open the same view in
    bex analyzer then I cannot find the local formula column; i.e. it is not reflected in the bex analyzer.
    Is this an error or this is not possible?
    Thanks in advance,
    Sandy.

    Hello Sandy,
    If you create the formulo at the web analyzer you will not be able to see it at the bex analyzer. Only if you create at the query designer, so you will be able to see it at the web and bex analyzer.
    Thanks,
    Diego Ferrary

Maybe you are looking for

  • "Cannot send email from this device"?

    I recently purchased the Easy Release App from the ITunes store and when I try to email the release to my email address it says "Cannot send email from this device". Is it the app that is preventing the sending or is it something to do with the iPod?

  • List of invoice

    is it possible in sap to get the list of invoices yet to receive from vendor, we have already done GR, but we have not yet received invoices in this case can we find the list of PO's for which invoice have not yet received

  • You used to have a feature that you could have 6 or 8 web add's on the home page

    We were able to drag bookmarks onto the home page so you could click on the site you wanted without any fuss every time you used Firefox it was called "speed search??" You could have a number off sites on your home page and just clicked on the one yo

  • How to install utility or manage Airport extreme base from Win server 2003

    I hope that everybody is doing well. I am currently studying Server Administration and Maintenance. I am running Win server 2003 and soon to use Win server 2008, provided by the school several months ago. I am trying to install the utility for my air

  • Change Color on Sheet Tab's from value in Cell

    I have try this code but it seem's not to Work propperly Private Sub Worksheet_Change(ByVal Target As Range) '    If Range("F58") > 9 Then '         Me.Tab.ColorIndex = 3 '    ElseIf Range("F58") = 8 Then '         Me.Tab.ColorIndex = 8 '    ElseIf R