Skip to Content
author's profile photo Former Member
Former Member

Replacement for sapbexonrefresh


I am trying to execute some Layout-Tasks with an Excel-Makro and call it everytime the query is refreshed. In 3.5 existed the function sapbexonrefresh. As far as I know this function does not exist anymore in NW2004s.

Is there a possibility to execute the macro everytime the query is refreshed? I've tried to replace the callback function, but all the hidden fields reappear after execution.

Has somebody an idea how to solve this problem?

Thanks in advance


P.S: my coding:





ActiveSheet.Outline.ShowLevels RowLevels:=0, ColumnLevels:=1

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jan 09, 2007 at 03:03 AM

    Please put the code into a macro of the new workbook. Specify that macro name in the "Workbook properties" dialog -> Exits tab -> Invoke macro on refresh.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2007 at 03:25 AM

    Hello Thomas,

    Following thread has the answer



    Sheik Bilal

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Sheik Bilal Peer Mohammed

      Hello Sheik,

      I am terribly sorry, but I tried that, too. 😉 I placed two messageboxes, one before and one after the line in question and it was definitely carried out.

      I added the line

      Application.ScreenUpdating = True

      and entered the debug mode and the command was carried out and when I left the function by pressing F8 in a last movement the lines were there again.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.