title: Creating a VBA Refresh Macro in Smart View for Oracle
body: <p>Does anyone know the VBA Code that I need to use so that I can automatically “Refresh” and “Refresh All” using EPM (Hyperion) Smartiew? The “Refresh” function pulls the data into Excel on the active tab where the “Refresh” all function refreshes all tabs in the Workbook. </p>
  
  <p>I’d like to create a simple macro attached to a command button in Excel and I’m not sure which VBA code to use. </p>
  
  <p>I tried recording a macro where by I simply starting recording clicked refresh and stop recording although this did not work.</p>
  
  <p>I tried this code just for the refresh:</p>
  
  <pre><code>Declare Function HypMenuVRefresh Lib "HsAddin.dll"() As Long
  
  Sub MRetrieve()
    X = HypMenuVRefresh()
  End Sub
  </code></pre>
  
  <p>But received an error message saying that I had to update the declare method for use with a 64 bit system (I am using a 64 bit system). </p>
  
  <p>Does anyone know how I could create this automatic Macro to refresh the data?</p>
  
  <p>Any help would be much appreciated! </p>