Refresh sheet

Hi,
My workbook contains 3 sheets.Sheet 2 & sheet3 contains two different Queries.
Sheet1 is teh summary of Sheet2 & sheet3.
When I execute the workbook for the first time , all the data is populated correctly.for eg . sheet1 displayes 1000 rows.If i refresh the queries again with some selection criteria , & if only 100 records are extracted, then sheet1 displys first 100 rows corretcly & the remaining 900 rows are displayed as # , as sheet1 was not cleared after the query refresh
I want to refresh sheet1 , which does not contain any queries .
Reagrds,
Anita
Message was edited by:
        Anita Prasanna

here is the VBA code we are using for the same .(defined in module).
Take any VBA Programmer help.
Public Sub clear_all()
    Clear_All_Query_Fields
End Sub
' Function to Protect the Data_input sheet
Public Sub Protect_cockpit_chart()
    data_input.Protect gc_password
End Sub
' Function to Clear the content of a range
Public Function ClearTargetArea(in_RangeAddress As String, in_worksheet As String)
    'Dim TargetArea As Range
    If in_worksheet <> vbNullString Then
        ActiveWorkbook.Worksheets(in_worksheet).Range(in_RangeAddress).Cells.Value = gc_xlsNoContent
    End If
End Function
' Function to clear the data input table
Public Function Clear_All_Query_Fields(Optional in_keyf As String = "ALL")
' ------------------------------+
' Clear headline in input sheet
    Call ClearTargetArea("D9:I9", gv_worksheet_input)
' Clear data in input sheet
    Call ClearTargetArea("C10:I28", gv_worksheet_input)
' ------------------------------+
End Function
Public Sub FormulaTransfer(SAPQueryResult As Range, _
                            BlattNamen As String, _
                            FromQueryColumn As Integer, _
                            FromQueryRow As Integer, _
                            ToSAPRow As Integer, _
                            ToSAPColumn As Integer)
    Dim mc As Range
    Set mc = SAPQueryResult.Cells(FromQueryRow, FromQueryColumn)
    data_input.Cells(ToSAPRow, ToSAPColumn).Value = mc.Value
End Sub
Assign points if its useful.

Similar Messages

  • Why is Refresh Sheet not showing me the parameters for report?

    I have a really large amount of data showing up in my report. It is taking forever (times out after 30 minutes) for my data to display. In the past, I have cancelled and then used the refresh sheet to constrict my report parameters and then rerun the report. However, today, after I select cancel, and then Refresh Sheet, the report just kicks off again and times out again without showing me my parameter list and without allowing me to specify my running parameters?
    Why is this happening and how can I get my Refresh Sheet to allow me to specify values for my execution parameters.
    Thanks,
    Cherie Machler

    Hi Cherie,
    Is this problem happening in Viewer?
    If yes, I had a SR open with oracle for this problem. It was recently closed without resolution. It is a problem that they are not willing to fix. My scenario is that I open a report with multiple worksheets that are long running and with multiple input parameters. I run the report with the default parameters. Realize I didn't input the correct thing, so I cancel the report. If I cancel at 3 seconds or less, my session hangs and I have to start a new internet session. If I cancel beyond 13 seconds, the cancel takes me back to the select worksheets screen but only allows me to run the report - no changing of parameters allowed.
    Message I received from Oracle:
    "I have received a response on Bug 5576575 - CANNOT CHANGE THE PARAMETER VALUES AFTER CANCELLING A
    REPORT IN VIEWER and internal enhancement request Bug 6007588 - NEED TO CHANGE THE PARAMETER
    VALUES AFTER CANCELLING A REPORT IN VIEWER.
    The bug applies to 10.1.2.54.25 also. Regarding allowing the parameters to be changed bug 6007588 the
    response " in order to fix this,it would need a change in architecture on how we capture and save state
    information. This is unlikely ".
    It will not be possible at this time to change the parameters when cancelling a query in Viewer."
    NOTE: If you read the bugs, they were logged against versions prior to 10.1.2.54 which means they should also apply to 10.1.2.50.
    Regards,
    Nancy

  • Workbook Refresh Sheet Protection

    Hello Gurus.
    I want to protect some cells in the sheet from the user, in order not to modified it, i'm using BEx 3.5 and the excel function of blocking cells and sheet protection, but when I save the workbook and then try to refresh it, it's saying me that this function is not available with excel protection, so I wonder of another way of protect my cells from user and also be able to refresh data in query.
    Thanks in advance.

    Hi,
    there is a possibility to use the SAP Workbook protection.
    Menu Business Explorer->Tools->SAP Protection. This prevents people from changing anything outside query area.
    regards,
    Raymond Baggen
    Uphantis bv

  • Refreshing a VBA Macro Periodically

    Hi All
    I have assigned the below code that refreshes my data to a button. I was wondering if there was a piece of code that allows the data to automatically refresh/run every 20minutes???
    Sub RESFRESHCUSTOMERORDERS()
    ' RESFRESHCUSTOMERORDERS Macro
        ActiveSheet.Unprotect
        Sheets("KYPERA").Visible = True
        Sheets("KYPERA").Select
        Sheets("PIVOTS").Visible = True
        Sheets("KYPERA").Select
        Range("B7").Select
        Selection.ListObject.QueryTable.REFRESH BackgroundQuery:=False
        Range("F7").Select
        Selection.ListObject.QueryTable.REFRESH BackgroundQuery:=False
        Range("N7").Select
        Selection.ListObject.QueryTable.REFRESH BackgroundQuery:=False
        Range("BT7").Select
        Selection.ListObject.QueryTable.REFRESH BackgroundQuery:=False
        Range("BZ7").Select
        Selection.ListObject.QueryTable.REFRESH BackgroundQuery:=False
        Sheets("PIVOTS").Select
        Range("B5").Select
        ActiveSheet.PivotTables("PivotTable1").PivotCache.REFRESH
        Range("F5").Select
        ActiveSheet.PivotTables("PivotTable2").PivotCache.REFRESH
        Range("J5").Select
        ActiveSheet.PivotTables("PivotTable3").PivotCache.REFRESH
        Range("N5").Select
        ActiveSheet.PivotTables("PivotTable4").PivotCache.REFRESH
        Range("R5").Select
        ActiveSheet.PivotTables("PivotTable5").PivotCache.REFRESH
        Range("W5").Select
        ActiveSheet.PivotTables("PivotTable7").PivotCache.REFRESH
        Sheets("PIVOTS").Select
        ActiveWindow.SelectedSheets.Visible = False
        Sheets("KYPERA").Select
        ActiveWindow.SelectedSheets.Visible = False
        Sheet8.Select
        Range("G15").Select
        Selection.ListObject.QueryTable.REFRESH BackgroundQuery:=False
        ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
            , AllowFiltering:=True
    End Sub
    Thanks

    At the top of your module, declare a public variable:
       Dim NextTime As Date
    Then, at the and of your Sub, use
        NextTime = Now() + TimeValue("00:20:00")
        Application.OnTime NextTime, "RESFRESHCUSTOMERORDERS", Schedule:=True
    But you also need to use this in the before close event of the Thisworkbook codemodule:
    Private Sub Workbook_BeforeClose(Cancel As Boolean)
        CancelRefresh
    End Sub
    where you have this procedure in a standard codemodule to cancel the refresh:
    Sub CancelRefresh()
        Application.OnTime NextTime, "RESFRESHCUSTOMERORDERS", Schedule:=False
    End Sub

  • EVGTS to get data from multi-applications in a workbook of multi-worksheet?

    Dear all:
    Situation
    I am trying to build a financial report that consists of:
    1. Balance Sheet (Finance App)
    2. Profit and Loss (Finance App)
    3. Sales Analysis (Sales App)
    4. Inventory Flow (Sales App)
    5. Expense Report (Finance App)
    Basically, I need the data from No.2 to No. 5 to get No.1 Balance Sheet.
    Problem
    When I refreshed or expanded the entire workbook, sometimes the other application's EVGTS would not get refreshed, and the cells either showed 0 or #RFR.
    Question
    1. For my EVGTS, I noticed that for the dimensions shared by both Finance and Sales Applications, I didn't include those members in my function. Could this be the reason? But I thought EVGTS would fill in the missing memebers directly from the Current View, or it has the limitation to one single Application?
    2. Also, EVGTS sometimes seems to refresh itself upon any change in my current view, and sometimes not. What is causing this behavior?
    Thank you!
    Have a nice long weekend to some of you...
    Brian

    There is a golden principle, Excel (Not BPC Excel client software) itself will take care about order of calculation. So, if your first sheet uses 2nd sheet's data, Excel will refresh 2nd sheet prior to 1st sheet. I am sure about it but what I am not sure is possibility of bug. Because I already heard similar issue as yours from other customer/consultant.
    If one of your sheet in workbook required other sheets' refresh, I suggest to use VB macro to make sure refresh sheet 2-5 then refresh sheet 1.
    But to do that, you should use EVDRE instead of EVGTS because BPC do not provides refresh by sheet macro but EVDRE.
    For your first question, you are true. If your applications sharing a dimension, you do not need to fill that dimension's member. BPC client will use CV member automatically.
    For second question, it depends on setting. If your BPC client has data that associated to your CV, it will be appeared. For example, you have refresh input schedule with Entity:SalesKorea. And refresh again with Entity:Sales. Then change VB again to Entity:SalesKorea. In this case, CV change to SalesKorea will make cell data change by data in cache. If you change CV to Entity:Worldwide1, your data will not be changed.

  • Function HypSetSheetOption of the lib HsAddin.dll is not working good

    Hi all,
    i have a problem with a macro excel that uses the library HsAddin.dll.
    First of all, the macro excel runs on Microsoft Office 2003; the version of smart view installed is 9.3.1.1.2.004 and the server has Microsoft Windows Server 2003, with Service Pack 2.
    In my macro i have put a variable like this: varOpzione = HypSetSheetOption(R_NOME_FOGLIO, 16, 1). The macro takes a list of excel worksheets, refreshes those and then overwrite the refreshed sheets. With that variable initialized in that way, POV's members are displayed with member names and aliases. This is a problem for the users that work on the refreshed sheets, because, after the refresh they are not able to work on the sheets and refresh those again manually.
    I have read this page: http://www.tcclab.com/Fresh%20Upload/Hyperion/SmartView/Docs/help/frameset.htm?/Fresh%20Upload/Hyperion/SmartView/Docs/help/hsv_help-13-50.htm#546380
    in which is written that in order to display only member names i have to set parameter 0 instead of 1. I have done it, but in this way, macro does not retrieve any sheet. The error i got for every sheet is 'error during the retrieve'. I can't understand why this is happening.
    Is there someone that could help me solving this issue?
    Thank you in advance for your help.
    Anna

    The JDeveloper probably has a differnet vesion of the XDK - we have to be careful of the uptake of new versions to make sure we don't have any regressions.
    <?xslt:maximum?> in the RTF becomes
    <xsl:value-of select="xdoxslt:minimum(.//Measures.Dollars)" xdofo:field-name="xdoxslt:minimum(Measures.Dollars)" />
    with:
    <xsl:stylesheet version="2.0" xmlns:xdoxslt="http://www.oracle.com/XSL/Transform/java/oracle.xdo.template.rtf.XSLTFunctions">
    Of course that works ONLY in xml publisher. I also would strongly recommend that you try the RTF templates.
    Klaus
    Edited by: KlausFabian on Mar 17, 2010 1:08 PM - correct typo

  • Region in Query without compounded attribute

    In Query the 0Region is displayed as US/UT, as it is having a compounded attribute 0Country.
    But the client needs only the region i.e UT
    How to get this ?
    Thanks.
    Anita

    What abour your earlier thread 'Refresh Sheet'?
    https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=2924647
    please  Try to respond to our replies.Have you not read Rules of Engagement?
    Welcome and Rules of Engagement

  • I am forced to hold shift and refresh the page on 99% of the sites I visit. How do I fix this from happening? If I don't the pages are missing style sheets and etc.

    When ever I go to sites they half load or are missing style sheets. If I view the source for the page and click on a style sheet link I get the following error:
    Content Encoding Error
    The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
    If I hold shift and refresh the page loads as normal.
    It's happening on 99% of the sites I visit. I have disabled my plugins and add-ons.
    I do have some add-ons or plugins that I would like to remove completely but there is no uninstall or remove option, neither in regular or safe mode.

    '''I'm NOT buying a backup Computer till, Firefox will Run on Windows 8 !'''

  • Power Pivot Configuration error while refreshing connection on excel sheet for SharePoint 2013 and Sql server 2014

    we are getting error while refreshing connection on excel sheet which containing data from data source in form of power pivot.
    error is "An error occurred during an attempt to establish a connection to the external data source. The following connections failed to refresh:"
    I am confused about Configuring the Analysis Service in SharePoint Mode.
    What account should be used for Configuring the Analysis Service in SharePoint Mode?
    what are the steps and what permissions are required and where to add it?
    can you please explain in detail so i can make sure about my account permission properly in my environment?
    Do we need to install Analysis service on sharepoint server box or not? if yes, then what are steps to follow it?
    it is mentioned here to have two services are running under manages services under sharepoint central,
    https://msdn.microsoft.com/en-us/library/jj682085.aspx#bkmk_verify_powerpivot
    but we don't have SQL Server Analysis Services
    running under  Manage
    services on server.
    what need to be done here to fix this issue ?
    Thanks,
    Deepak Patel

    Hi Deepak,
    We are currently looking into this issue and will give you an update as soon as possible.
    Thank you for your understanding and support.
    Meanwhile, could you please check if there is any related ULS log for help troubleshoot the issue when error occurs.
    http://social.technet.microsoft.com/wiki/contents/articles/3870.troubleshoot-powerpivot-data-refresh.aspx
    http://blogs.technet.com/b/excel_services__powerpivot_for_sharepoint_support_blog/archive/2013/04/02/powerpivot-for-sharepoint-manual-data-refresh-failing.aspx
    Thanks
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • XML page cannot be displayed cannot view XML input using XSL style sheet Please correct the error and then click the REfresh

    XML page cannot be displayed cannot view XML input using XSL style sheet Please correct the error and then click the REfresh

    Is the error message displayed in Firefox or in IE, or in a customized window that doesn't identify the browser?
    ''If it displays in Firefox:''
    It's possible that the Troubleshooter doesn't work correctly unless IE is your default browser. You could test that possibility by having IE make itself the default and testing the Troubleshooter again.
    ''If it displays in IE or embedded in another Microsoft application:''
    In a web search I found these suggestions:
    (1) Reset your Internet Explorer settings, according to http://answers.microsoft.com/en-us/ie/forum/ie8-windows_7/cannot-view-xml-using-xsl-style-sheet/ccfe80c6-c0db-4594-a7e3-475f9eac0e85
    (2) Try the System File Checker, according to http://ask-leo.com/why_do_i_get_the_xml_page_cannot_be_displayed_after_running_a_microsoft_troubleshooter.html
    Any luck?

  • Power Pivot Configuration error while refreshing connection on excel sheet for SharePoint 2013 and Sql server 2014 using BISM file connection

    I am getting following error while refreshing connection on excel sheet in power pivot gallery,
    my scenario,
    using BISM file connection to create and  refresh power pivot excel sheet in power pivot gallery
    throws error and we have sql server 2014 CU6 updated installed plus sharepoint 2013. i checked following msolap110.dll is available in our environment but assembly
    Microsoft.AnalysisServices.ChannelTransport is not available. 
    i found error in event viewer,
    "Activation context generation failed for "C:\Program Files\Microsoft Analysis
    Services\AS OLEDB\110\msolap110.dll". Dependent Assembly
    Microsoft.AnalysisServices.ChannelTransport,processorArchitecture="MSIL",publicKeyToken="89845dcd8080cc91",version="11.0.0.0" could
    not be found. Please use sxstrace.exe for detailed diagnosis.
    what should i do to fix it?
    Thanks for help.
    Deepak Patel

    Rebecca,
    yes, this is issue i am getting.
    Activation
    context generation failed for "C:\Program
    Files\Microsoft Analysis Services\AS OLEDB\110\msolap110.dll".
    Dependent AssemblyMicrosoft.AnalysisServices.ChannelTransport,processorArchitecture="MSIL",publicKeyToken="89845dcd8080cc91",version="11.0.0.0" could
    not be found. Please use sxstrace.exe for detailed diagnosis.
    let me know if you can find fix for it.
    THanks,

  • Smartview refreshes whole sheet instead of just the grid selected.

    Hello All,
    Is it possible to refresh just selected rows in a sheet with different member combinations instead of the whole sheet? In other words I have
                       Member3  Member4
    Member1           A             C
    Member2           B             D
    Is it possible to retrieve/refresh just the values of A and C. When I try it out in our environment by selecting the row that corresponds to A and C it refreshes the values of A and C and B and D as well. This does not happen with the classic add-in.
    We are on 11.1.2.3 of Essbase/APS and smartview.
    Thanks,
    Ted.

    Hello Steve Fitchett,
    I found user10132385, Amarnath's suggestion useful. Once Multiple ad-hoc grids are enabled for the sheet I was able to do range based retrievals. But I agree with you that without having that enabled it is not possible (unlike with the add-in). Thanks to all of you for your replies.
    Thanks,
    Ted..

  • Refresh of single sheet in  a workbook

    Hi all,
    I have a workbook with 5 sheets and each sheet has 2 different queries. Users want to have a refresh button on each sheet, so that when they click on refresh button only that sheet should be refreshed. I know this can be done using VBA but does anyone have the code which does this functionality?
    Thanks in advance.

    Hi Hansa,
        Here is what you need to do.
    1) Place a Button on Each Sheet that you would like to Refresh.
    2) On Each button Place the Following Code.
        Me.Select
       ' Cell from the first Query.
        Range("B2").Activate
        Run "SAPBEX.XLA!SAPBEXrefresh", False
       'Cell in the Second Query
       Range("AA2").Activate
       Run "SAPBEX.XLA!SAPBEXrefresh", False
       'So on for all the Queries on that Sheet.
    You can add some Error Handling if you need to.
    If you use
    Run "SAPBEX.XLA!SAPBEXrefresh", True
    Then all Queries will be refreshed so I think you will have to do the above.
    If you Really want this to be Dynamic where in every time you add a Query to the Sheet you don't want to change the Code then here is my Suggestion.
    'Do this when the sheet is setup.
    'On the Button of Each Sheet
    Private Sub CommandButton1_Click()
              Send the Sheet Name to a Generic Code in a Module
             'Here the Row Number is a Cell Where you can add all
             ' the Ranges for that Sheet.
    ' e.g. on a Hidden Sheet
    ' Cell A5 for Sheet 1 looks like Below
    ' B2, Z2, A100
    ' Indicates that Sheet1 has 3 Queries Starting on Cell B2, A100
             Call RefreshSheet("Sheet1",5 )
    End Sub
    ' In a Module Create this
    Public Sub RefreshSheet(ByVal sSheet As String, ByVal iRow As Integer)
        'Assumptions: There is a Sheet called Update.
        'Cells have Starting Cell of Each Query in Rows. Column "A"
        On Error GoTo Err_RefreshSheet
        Dim arrCells() As String
        Dim wks As Worksheet
        Dim iLoop As Integer
            Set wks = ThisWorkbook.Worksheets(sSheet)
            'Here Update is my Hidden sheet and Row, 1 is the Cells that holds Ranges
            arrCells = Split(ThisWorkbook.Sheets("Update").Cells(iRow, 1), ",")
            'Activate the Sheet that needs to be refreshed.
            wks.Activate
            'This will Loop on all the Cells where there is Query and Refresh it.
            For iLoop = 0 To UBound(arrCells)
               wks.Range(arrCells(iLoop)).Activate
               Run "SAPBEX.XLA!SAPBEXrefresh", False
            Next
    Exit_RefreshSheet:
        Set wks = Nothing
        Exit Sub
    Err_RefreshSheet:
        MsgBox "There Following Error in RefreshSheet" & vbCrLf & _
               Err.Description
        Err.Clear
        Resume Exit_RefreshSheet
    End Sub
    This way when you add a new Query on  Any Sheet all you do is go to Update Sheet and on the Line for the Sheet with new Query Add the Cell to Comma seperated Values.
    The Code is Almost there, you will have to tweak it a bit.
    Hope this Helps. !!
    Datta.

  • Google Sheets: A browser error has occurred. Please hold the Shift key and click the Refresh button to try again.

    Since upgrading to OSX Yosemite last night, I get this error message when I open spreadsheets previously created in Google Drive: "A browser error has occurred. Please hold the Shift key and click the Refresh button to try again." Following these instructions does absolutely nothing.
    Word google docs open fine, as do spreadsheets that aggregate responses from a form and a select few spreadsheets; however most other spreadsheets display the same error message.
    I've tried:
    opening in Google Chrome - uninstalling and reinstalling Google Chrome: same issue
    opening in Firefox: same issue
    opening from sheets.google.com: same issue

    moving tab doesn't work.

  • EvDRE: Refresh Active Sheet (for VBA)

    Is there a routine I can use that's the equivalent to:
    Right-click, EVDRE: Exand & Refresh...Active Sheet
    I'm aware of the VBA routines like MNU_eTOOLS_EXPANDANDREFRESH and MNU_eTOOLS_EXPAND, and MNU_eTOOLS_REFRESH---but did not find any documentation on this calling this.
    Edited by: Allison Jones on Mar 17, 2008 8:50 PM

    Those may be internal calls to the addin that are accidently exposed.  You should not call anything that isn't documented.  All the MNU commands are documented in the eTools help file I referenced earlier.  Choose, [eTools] > [BPC for Office help] then search on [MNU] and choose [BPC menu commands].
    You can either assign the macro to a form button or call them in a VBA routine as Joost mentioned.  If the goal is to just call the macro, the button works fine.  The only reason to call them from VBA is if you need to string together multiple operations in a single process.  Then you'd write your own macro and assign it to a button.
    The function that is equal to Expand and refresh on a report template would be MNU_ETOOLS_EXPANDANDREFRESH.  This does both an expand of dynamic members and a data refresh.  If you just need to update the data, MNU_ETOOLS_REFRESH is all that's needed.

Maybe you are looking for

  • How do I disable iphoto from automatically launching when I plug in my iPhone?

    Trying to figure out how to disable iphoto from automatically launching on my Macbook Pro every time I plug in my iphone via USB cable. Tried looking at preferences in iphoto and itunes, but can't seem to find anything. Thanks!

  • Using java 2 SDK,SE v1.4.2_01

    how do you compile and run a non executable like HELLO WORLD and or do i need a compiler? and whats the signifigance of making a permanent path, i mean its supposed to be convienient, can somone explain these two things i would appreciate this greatl

  • Hotspot text compiles showing code, not a working link

    Help would be very appreciated; sorry for not being able to find this in the Adobe site or Grainge.. Everytime I open my webhelp project, the hotspot text shows code instead of remaining as a hotspot; this is true if the hotspot is in a table or outs

  • UWL attachments

    Hi,   This is my first Thread in SDN. I am very new in portal. I have implemented UWL as portal inbox to connect with r/3 inbox. It's working fine.   My problem is in UWL i am getting some Attached file. My client don't want those.   Is there any way

  • Save for Web and Devices - vertical limited to 8192px

    I'm not sure if this is a bug/limitation in Photoshop CS4, or of the file format itself, but I suspect the former. I've got a .gif 18x8888 (a sprite used in the YUI Treeview component) and PS refuses to export it other than by forcing a resize down t