+ Reply to Thread
Results 1 to 2 of 2

Creating VBA Macros for running Essbase

  1. #1
    Registered User
    Join Date
    05-21-2014
    Posts
    2

    Creating VBA Macros for running Essbase

    I am looking to create a VBA that will refresh an Essbase sheet automatically. I am struggling to do so because of being relatively new to the wordage in VBA. This is what I am trying to use, but I receive an error saying "Sub RunCalculate () is incorrect:

    Sub Essbase()
    '
    ' Essbase Macro
    '
    Declare Function EssVCalculate Lib "ESSEXCLN.XLL" (ByVal sheetName As
    Variant, ByVal calcScript As Variant, ByVal synchronous As Variant) As Long
    Sub RunCalculate()
    X = EssVCalculate("[2016 Shop Income Statement Summary March.xlsm]Hyperion CY Refresh Sheet", "Default", "")
    If X = 0 Then
    MsgBox ("Calculation complete.")
    Else
    MsgBox ("Calculation failed.")
    End If
    End Sub



    If helpful:
    • The sheet name to be updated is "2016 Shop Income Statement Summary March.xlsm
    • The sheet tab name is "Hyperion CY Refresh Sheet"

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Creating VBA Macros for running Essbase

    This will at least get you to "File not Found":

    Please Login or Register  to view this content.
    BTW:-
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here


    *Please attend to that post-haste
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. All Macros Are Enabled, But Macros Are Still Not Running
    By chasfh in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 06-04-2019, 07:23 AM
  2. [SOLVED] Hiding the file when running macros and after running macros
    By thilag in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-10-2016, 07:15 AM
  3. Running XLM macros
    By srwpchelp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2011, 09:37 AM
  4. running macros
    By Mut in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2007, 04:51 AM
  5. Running Macros
    By in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2006, 04:19 PM
  6. [SOLVED] Running Macros when on the LAN
    By Bettergains in forum Excel General
    Replies: 0
    Last Post: 10-06-2005, 05:05 PM
  7. [SOLVED] HELP - Running Macros in VBA
    By Louise in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 04-06-2005, 12:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1