Error of VBA program

Hi,allI have a VBA program developed in Excel 2000.When this program running,EssVConnect() and EssVSetSheetOption() are OK,but EssVZoomIn() has an error occured.It alerted a message "The range is not valid" and return a local failure "5" which can not be finded in the Essbase spreadsheet service help.Here is the code:Declare Function EssVZoomIn Lib "EESADDIN.XLL" (ByVal sheetName As Variant, ByVal range As Variant, ByVal selection As Variant, ByVal level As Variant, ByVal across As Variant) As Longy = EssVZoomIn("data", Null, range("A3"), 3, False)Does anyone know about this error?Essbase's version is 7.1.3.The web application server is WebSphere.

In looking back at your first post, three things struck me.1) Your definition for EssVZoomIn varies sufficiently from mine to warrant checking out (I don't have version 7.1, I'm on 6.5, so it may be a change that is okay). Below is my definition, but beyond the version, the language change may also have an influence. Either way, I'd recommend you look at the API supplied with the installed version of Essbase to see if it's valid. FWIW, here is the definition from the English 6.5 version, as you can see, the XLL name is entirely different -- again, this may not be relevant, so it's something to look at.Declare Function EssMenuVZoomIn Lib "ESSEXCLN.XLL" () As Long2) Your call uses the sheet name without a fully qualified workbook name. This works under some situations, and not under others. Try defining a string and range variable to see if that helps (if nothing else, it may help point out why the call fails). Here's the snipet (periods are for formatting):Dim strSheet as String, oCell as Range....Set oCell = ActiveSheet.Range("A3")....strSheet = "[" & ThisWorkbook.Name & "]" & ActiveSheet.Name & "!" & oCell.Address....y = EssVZoomIn(strSheet,Null,oCell,3,False)3) The cell A3 itself is curious, but not necessarily wrong. Perhaps there is something in the language or version that makes Essbase suspect that it's part of the page area instead of a row label. As a test, try lining the page members up in cells A1, A2, etc..., move the row labels down, make sure there is at least one blank row before your column labels, and that you have at least one column label. This just gives Essbase a better chance of interpreting your layout properly.If it's not any of the above, well, you may be right, it could very well be a version dependent bug. It wouldn't be the first time, but in general the Essbase API is fairly solid, just a bit quirky at times.Hold on here... I just realized something. The message isn't saying that the selection isn't valid, it's the range. Perhaps it is literally referring to the range parameter -- your "Null" may need to be removed to make it just:y = EssVZoomIn("data",,range("A3"),3,False).I normally use a fully defined range, "ActiveSheet.UsedRange" should work, too, although it may truncate the output if it doesn't include the rows beneith in the zoom.An alternative would be to just select cell A3 and call EssMenuVZoomIn, after setting the zoom level to 3, etc... It's not a pretty workaround, but it's a workaround.Good Luck, again :)

Similar Messages

  • VBA Programing Question - Very Basic - One Field Maps to Another Field

    I have a MS Project schedule where I created some custom fields.  I have one custom field for the number of items required to complete the task and then another custom field for the remaining "open" items.  I am using those two fields
    to make a calculated third column which calculates the "% completed"...I couldn't call it "% complete" since that is one of the built-in fields. 
    The problem is then I have to go down through and manually type in the "% complete" values so that they match my calculated "%completed".  It sure would be slick if I had a macro that would automatically make all of the "% complete"
    fields match the "% completed" fields. 
    Seems simple, but I have zero experience in VBA programming.
    Thank you in advance for your help.
    Bill

    Try:
    Sub UpdateCompleteStatus()
    Dim Job As Task
        For Each Job In ActiveProject.Tasks
        If Not Job Is Nothing Then
            If Not Job.Summary Then
                If IsNumeric(Job.Number3) Then
                    If Job.Number3 >= 0 And Job.Number3 <= 100 Then
                        Job.PercentComplete = Job.Number3
                    End If
                End If
            End If
        End If
        Next Job
    End Sub
    Number 3 being zero is not a problem, but being an error value or <0 or >100 is a problem.
    <p>Rod Gill</p> <p><a href="http://www.project-systems.co.nz/project-vba-book/index.html/">The one and only Project VBA Book</a> <a href="http://www.project-systems.co.nz/"></p> <p>Rod
    Gill Project Management</a></p>

  • How to return success/failure message in a VBA program that uses ADODB

    I have this little VBA program that uses ADODB to execute a SQL Server Agent job remotely.  How do I add a message box at the end that would give some feedback to the user, if the execution command was successfully sent to the server or if it failed?
    Sub Test_SSIS()
    Dim conn As Object
    Set conn = CreateObject("ADODB.Connection")
    conn.Provider = "sqloledb"
    conn.Properties("Prompt") = adPromptComplete
    conn.Open = "Data Source=MYSERVER;USER ID=JOHNDOE;"
    conn.Execute "exec msdb.dbo.sp_start_job 'Test_remote_job_execution'"
    End Sub

    Hi Tim,
    When I looked up the BOL about the ADO.Connection
    EXECUTE method, something came to my sight.
    "An ExecuteComplete event will be issued when this operation concludes." You may reference the
    ExecuteComplete. A quick glance at the event, it contains the execute result set and errors if occured.
    Regarding your description, your question is more relevant about VBA, I suggest you post your question on a dedicated VBA forum. It is appropriate and more experts will assist you.
    Here is a relevant link you can reference
    Visual Basic of Application
    If you have any feedback on our support, please click
    here.
    Eric Zhang
    TechNet Community Support

  • RUNTIME ERROR IN GENERATED PROGRAM. Overflow converting ''

    Hi,
    While executing the below code i am getting the error
    " RUNTIME ERROR IN GENERATED PROGRAM. Overflow converting ' ' am new to ABAP , can anyone kindly help me where i have went wrong ? .
    IF ( V_DO_CDS_NAME_MAIN <> '' ).
        ABAP.
            DATA: ref_it_tab TYPE REF TO data,
                  ref_wa TYPE REF TO data.
            FIELD-SYMBOLS: <fs_itab> TYPE ANY TABLE.
            FIELD-SYMBOLS: <fs_wa> TYPE ANY.
            FIELD-SYMBOLS: <fs_field> TYPE ANY.
            CREATE DATA ref_it_tab TYPE STANDARD TABLE OF (V_DO_CDS_NAME_MAIN) WITH NON-UNIQUE DEFAULT KEY.
            ASSIGN ref_it_tab->* TO <fs_itab>.
            SELECT * FROM (V_DO_CDS_NAME_MAIN) INTO TABLE <fs_itab> where C1 = V_WORK_ITEM_ID_MAIN.
            CREATE DATA ref_wa LIKE LINE OF <fs_itab>.
            ASSIGN ref_wa->* TO <fs_wa>.
            loop at <fs_itab> assigning <fs_wa>.
                assign component 'CLIENT' of structure <fs_wa> to <fs_field>.
                V_CLIENT = <fs_field>.
                assign component 'C0' of structure <fs_wa> to <fs_field>.
                V_C0 = <fs_field>.
                assign component 'C1' of structure <fs_wa> to <fs_field>.
                V_C1 = <fs_field>.
                assign component 'C2' of structure <fs_wa> to <fs_field>.
                V_C2 = <fs_field>.
                assign component 'C3' of structure <fs_wa> to <fs_field>.
                V_C3 = <fs_field>.
                assign component 'C4' of structure <fs_wa> to <fs_field>.
                V_C4 = <fs_field>.
                assign component 'C5' of structure <fs_wa> to <fs_field>.
                V_C5 = <fs_field>.
                assign component 'C6' of structure <fs_wa> to <fs_field>.
                V_C6 = <fs_field>.
                assign component 'C7' of structure <fs_wa> to <fs_field>.
                V_C7 = <fs_field>.
                assign component 'C8' of structure <fs_wa> to <fs_field>.
                V_C8 = <fs_field>.
                assign component 'MESSAGE_ID' of structure <fs_wa> to <fs_field>.
                V_MESSAGE_ID = <fs_field>.
                assign component 'TIMESTAMP' of structure <fs_wa> to <fs_field>.
                V_TIMESTAMP = <fs_field>.
                assign component 'EXTRACTKEY' of structure <fs_wa> to <fs_field>.
                V_EXTRACTKEY = <fs_field>.
                assign component 'STATEID' of structure <fs_wa> to <fs_field>.
                V_STATEID = <fs_field>.
                assign component 'DEVICE_ID' of structure <fs_wa> to <fs_field>.
                V_DEVICE_ID = <fs_field>.
            ENDLOOP.
        ENDABAP.
    ENDIF.

    Hi Mubeen,
    While Copying the cotes have come closer otherwise its working fine , i was able to find the error .
    There are ten predefined ABAP data types. There are 100 possible type combinations between these elementary data types. ABAP supports automatic type conversion and length adjustment for all of them except type D (date) and type T (time) fields which cannot be converted into each other.
    I commented the TimeStamp part where i had given the ABAP Type as D and it started working .
    But now i want to display the content of  "TimeStamp"  field but i am not able to do so .
    This is the format in which it has to be displayed 2009.011.915.3353.
    Which ABAPTYPE i need to use ?.
    i am able to display in this format 20090119153353
    regards
    Harsha

  • Runtime Error in MMBE- s yntax error occurred in program "SAPLMBBS " in inc

    Hi Gurus,
    Runtime Error in "MMBE" Transaction -
    The following syntax error occurred in program "SAPLMBBS " in include "LMBBSU07
    " in
    line 76:
    "The column name "MATNR" has two meanings . ."
    Any Input is Highly appreciated.
    Thanks and Regards,
    Selva

    Hi,
    This looks like an ABAP runtime error and the program concerned is a standard program. Please check the include and try debugging, suggest a breakpoint in line 76.
    Thanks

  • Error Your browser/program is not supported by Web Dynpro

    Hi,
    1. I am getting error "Your browser/program is not supported by Web Dynpro" while executing Web dynpro java application
    2. Portal is EP 7.0 with SP15
    3. Browser is IE 8.0
    4. Which browser(s) (& sp level)  are supported by web dynpro?
    5. Is it possible to customize this error message?
    6. If so, from where (Web dynpro java application or Visual Admin) 
    7. My web dynpro application supports multiple languages.
    8. Is it possible to maintain this message in messagecomponent.xlf file
    Thanks & regards,
    Nilesh

    Hi Nilesh
    IE8 and IE7 is not supported.
    For browser/program is not supported by Web Dynpro----
    check this forums link
    /message/6416540#6416540 [original link is broken]
    /message/2842083#2842083 [original link is broken]
    Re: browser/program is not supported by Web Dynpro!
    Hope this link information will help you
    Regards
    Ruturaj

  • Error while running Program YL_ADJUST_COMMITMENT

    Error while running Program YL_ADJUST_COMMITMENT, i think it actually comes from FN8C business operation for single posting w
    "Message" - No account refernce could be found - Error in update to Accounting - Distribution error -CoCd 601.
    Please help

    Resolved my self

  • Error while executing program

    Hi ,In sap bods,  im using abap dataflow as my source and target is flat files ,while im executing its showing error
    "Execute ABAP program <C:/Program Files/Business Objects/BusinessObjects Data Services/zcustdim.aba> error <    Open File Error"
    how can i solve this problem,
    Moderator message: please have a look in the forums for Business Objects.
    Edited by: Thomas Zloch on Mar 8, 2012

    Prem,
    Looking at the error that you have shown, looks like its a different error. Is there a control/GRID that is being used in the program.
    If you are using a CUSTOM CONTAINER and a GRID to display the data, whenever you executing the program, you should not create the container. Something like this ..
        if cl_gui_alv_grid=>offline( ) is initial.
          create object CUSTOM_CONTAINER
                 exporting container_name = CUSTOM_CONTROL
        endif.
    Regards,
    Ravi
    note : Please reward the helpful posts.

  • Error message c:\program files (x86)\itunes\ituneshelper.exe   r6034

    can not log into itunes, get the following error message:  c:\program files (x86)\itunes\itunes help.exe
    R6034
    I have uninstalled and reinstalled and still unable to login

    Apple's advice on this issue can now be found here: TS5376: iTunes 11.1.4 for Windows: Unable to install or open.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See the user tip Backup your iTunes for Windows library with SyncToy for a suggested strategy.
    If you have difficulty downloading the iTunes setup file try clearing your browser's cache or using an alternate browser.
    If content is missing from the library following the repair see Empty/corrupt iTunes library after upgrade/crash.
    For device connectivity issues following the repair see TS1538: iOS: Device not recognized in iTunes for Windows, in particular section 5.
    MobileMe is a discontinued service and should be removed if present. See HT2992: MobileMe: Uninstalling the MobileMe Control Panel for Windows for details.
    tt2

  • Creation of pdf-files from a VBA programming of a database application

    In a kind of form letter practice through a modular programming in Microsoft Access individual invoices created as PDF files shall be sent as serial e-mails.
    Example: After a seminar, for example 50 people shall receive individual invoices with invoice number and the respective address.
    After creation we don’t want the pdf-documents to be displayed on the screen. It should be automatically transferred through our MS-Access-programming to Outlook for serial e-mails.
    The functionality of the automation is positioned in a VBA module (Visual Basic for Application) of a MS Access form.
    At this point Acrobat PDF should be controlled by MS-Access VBA programming (and not manually by the user).
    To implement such an automatic, we need a documentation of the interfaces for the later in the text referred Acrobat objects, which can be addressed in the MS-Access VBA Programming.
    References in Microsoft Access:
    Adobe Acrobat 10.0 Type Library
    Acrobat Access 3.0 Type Library
    Acrobat Distiller
    Objects according to Microsoft Access Object Browser:
    AcroApp
    AcroAVDoc
    AcroAXDoc
    AcrobatAccessLib
    ACRODISTXLib
    AcroHiliteList
    AcroPDDoc
    AcroPoint
    AcroRect
    AcroTime
    Among the listed objects and their properties and methods, we need a comprehensive description.
    Are there special *. DLL or *. chm or *. hlp - files
    which can be addressed by MS-Access directly to automatically generate PDF files?

    Google the following:
    Software\Adobe\Acrobat Distiller\PrinterJobControl\
    I have done this using a Report I designed in MS Access, you basically print to the 'ADOBE PDF' printer. No need to use any of the References you listed.
    I loop thru a recordset of Customer IDs and generate my reports. I do the Outlook piece after I have generated the pdf files.
    My Access report has no RecordSet, it is set on the fly, using the following:
    Private Sub Report_Open(Cancel As Integer)
    Me.RecordSource = sqlReport
    End Sub
    sample code:
    sub genReports
    Dim lRC
    Dim sReg
    Dim emailPath As String
    Dim accessPath As String
    Dim strKey As String
    Dim rsCust As New ADODB.Recordset
    Dim rsRecs As New ADODB.Recordset
           emailPath = currentproject.path & "\email\"
           accessPath = SysCmd(acSysCmdAccessDir)
           accessPath = accessPath & "MSACCESS.EXE"
           strKey = "Software\Adobe\Acrobat Distiller\PrinterJobControl\"
            Set sReg = GetObject("winmgmts://./root/default:StdRegProv")
           'PrinterJobControl key
           lRC = sReg.CreateKey(HKEY_CURRENT_USER, strKey)
           'query to get Customer IDs     
           rsCust.Open "qryReportCust", CurrentProject.Connection, adOpenStatic
           Do Until rsCust.EOF
            strCust =rsCust!CustID
            'sqlReport is a function that uses CustID as parameter
            rsRecs.Open sqlReport, CurrentProject.Connection, adOpenStatic
            If Not rsRecs.BOF Then
               lRC = sReg.SetStringValue(HKEY_CURRENT_USER, strKey, _
                                         accessPath, emailPath & strCust & ".pdf")
                DoCmd.OpenReport "rptCustomerInvoice", acViewNormal
            End If
            rsRecs.Close
            Set rsRecs = Nothing
       rsCust.MoveNext
        Loop
       rsCust.Close
    end sub

  • On Mac OS 10.9.5 : impossible to initialize Photoshop because of an error of the program

    I downloaded Adobe PhotoShop CC and Lightroom 5 (paid version). Lightroom 5 seams to work but Adobe PhotoShop gives an error message "impossible d'initialiser Photoshop en raison d'une erreur du programme" (sorry it's in French, in English this could be "impossible to initialize Photoshop because of an error of the program". Not any additionnal error code or comment.
    I tried to uninstall, dowload and install again, but I still get the same message after the new install.
    Has anybody experimented this problem ? Thanks for your kind help.

    Thanks for tour suggestion, but unfortunately  it does not work. I get a dialog box about virtual memory and the disks I want to choose for, but I cannot trash the prefs. I changed the disks to see and I still get the same message.

  • Syntax Error occured in Program  in include " CNTN01

    Hi,
    We are working on SAP 4.6C to ECC 6.0 Migration. While testing One Transaction, I am getting following error:
    The current ABAP program "CL_GOS_TOOLBOX_MODEL==========CP" had to be
    terminated because it has come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program
    "Z3I_CL_BASCULER_SCS_GOS=======CP " in include "<CNTN01> " in
    line 13:
    "Within classes and interfaces, you can only use "TYPE" to refer to ABA"
    "P Dictionary types, not "LIKE" or "STRUCTURE"."
    The include has been created and last changed by:
    Created by: "SAP "
    Last changed by: "SAP "
    Error in the ABAP Application Program
    This Error is coming while executing transaction in ECC 6.0 however in R/3 4.6C it is working fine.
    Pls Advice what should be done to resolve this issue. This issue is coing in alot of transactions.
    I will appreciate if anyone of you can guide me regarding same.
    regards
    Sandeep

    Hi,
    I was trying hand on one of my Z class which contain  include <CNTN01>. in its Local Types.
    I commented the existing include statement and added new statement as
    INCLUDE CNTN01_OO.
    After saving now when i try to activate the Z Class, it is giving me following error:
    INCLUDE CNTN01_OO
    You can only define classes and interfaces at the highest level of CLASS-POOL.
    CLASS Z5C_CL_MESSAGE, Internal classes in a class include "CNTN01_OO" does not start with the prefix (Z5C_CL_MESSAGE=======)of the current class pool.
    pls advice what i should do correct this issue.
    Sandeep

  • Hierarchy load - Error RSAR 683 Syntax error in generated program, row 0

    Hi guys,
    When I load the hierarchy on ZMATERIAL (load from 0MATERIAL hierarchy - source system BW), I have this error message : RSAR 683 Syntax error in generated program, row 0.
    I have found several SAP notes, especially [Sap Note 944842|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_whm/~form/handler], but the implementation on our system does not change anything.
    We are working on BW3.5 SP12.
    Can anyone could tell me what to do ?
    Will this issue be solved once we upgrade until SP18 as it is mentionned in the SAPNote ?
    Thanks,
    Alexandra
    Edited by: Alexandra Guillaux on Apr 1, 2009 4:36 PM

    Hello Alex,
    after implementing the corrrection part of note 944842 via SNOTE, plaese also:
    1. replicate datasource
    2. activate transfer structure (report RS_TRANSTRU_ACTIVATE_ALL)
    3. activate infoobject   (make dummy change to description
    of infoobject etc, save and activate it, remove change and save and
    activate it again).
    Hope it could resolve the incident.
    Thank you & Best regards,
    Vince

  • Syntax Error in generated program.

    Hi Experts -
    I saw a similar thread regarding the issue I'm having but I thought I'd open another thread.
    0CMMT_ITEM_FMCI_PU_HIER Syntax Error for Generated Program
    I'm doing an extraction for 0CRM_ORGUNIT_HR01_HIER in RSA3 of CRM.
    I get an error message:
    Message RJ028 : Error 6 in function module RSS_PROGRAM_GENERATE
    There is a syntax error in the code.
    How do you solve this issue?
    We applied OSS note 822323 but still get the same error. The code still has the syntax error.
    Any one saw this or have any solutions? Please let me know. Thanks a lot in advance!

    Hi,
    Use the program RSA1HCAT in SE38 to check your hierarchy.
    Transaction RSA3 was not developed for checking hierarchy DataSources.
    Rather, it is only for transaction and attribute/text datasources.  If
    you want to check the extraction of hierarchy datasources in the R/3
    system, you should use the report RSA1HCAT.  In this report, enter the
    name of the hierarchy datasource in the "DataSource with HierarchyType"
    field.
    For this problem look at the note: 632920.
    Regards,
    Srikanth.

  • Trying to update creative cloud, comes error: The installation program could not access the important files / directories. Try to run the installer again. (Error code: 43), please contact customer support. The same error comes updating Muse. Mac 10.9.5. W

    Trying to update creative cloud, comes error: The installation program could not access the important files / directories. Try to run the installer again. (Error code: 43), please contact customer support. The same error comes updating Muse. Mac 10.9.5. What shall I do?

    Alauda_positos I would recommend reviewing your installation log files to determine the exact directory which the installer is unable to access.  You can find details on how to locate and interpret your installation log files at Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html.  You are welcome to post any specific errors discovered to this discussion.
    For information on how to adjust file permissions please see Error "Exit 6" or "Exit 7" | Install log | Read, write, system file errors | CS5, CS5.5 - http://helpx.adobe.com/creative-suite/kb/error-exit-6-exit-7.html.

Maybe you are looking for

  • Form ???

    I created a fillable PDF form, using Acrobat 9.  When I open it in Acrobat Reader XI I can fill in the fields, but as soon as I go to the next field, the text in the prior field disappears.  It is still there, but not visible until I click in this fi

  • Can't install Mac OS X.4.5

    Hello everybody. I have a problem. i wanted to install Mac OS X on my hard drive again, because i wanted to install the newest firmware update, which isn't possible under linux. I have the following disk setup: Disk /dev/sda: 80,0GB Sector size (logi

  • Lion and Logic

    Since installing Lion, I can no longer adjust my output levels in Logic Pro. I am told the driver is lacking. Plus if I try adjust sound output whlst playing anythingm iTunes  for example.. The application shuts and repeats the' absence of driver' wa

  • OWB repository management

    OWB repository change management I had created a OWB repository, owb_test, to develop & test modules defined for our warehouse. Hence, in owb_test may contain different types of modules where some of them are defined for testing purpose. Do you recom

  • I've downloaded Retrogamer toolbar and get a message that the add-on is disabled, how do I enable it?

    I've been instructed to manage an add-on which has been disabled after downloading retrogamer toolbar. There are many add-ons and plug-ins disabled. How do I determine which one to enable? What would happen if I just enable all of them? Would this ca