Excel macro will not run with OLE

I have an ABAP program which builds an Excel macro with VBA code, downloads the file and inserts it into a new Excel workbook, and then runs the macro to populate the workbook.  All of this is being done via OLE functionality.
The process works correctly for 99% of our user community.  However, some users are having trouble where when the Run Macro command is executed, the program just hangs and nothing happens.
Here's a snippet of the code:
  CREATE OBJECT excel 'EXCEL.APPLICATION'.
Insert macro file into the spreadsheet.
  CALL METHOD OF excel 'Modules' = ole_module NO FLUSH.
  CALL METHOD OF ole_module 'Add' = ole_newmodule NO FLUSH.
  CALL METHOD OF ole_newmodule 'Activate' = ole_activate NO FLUSH.                                              
  CALL METHOD OF ole_newmodule 'InsertFile' = ole_insertfile NO FLUSH EXPORTING #1 = macrofile.                   
  FREE OBJECT ole_insertfile NO FLUSH.                    
  FREE OBJECT ole_activate NO FLUSH.                     
  FREE OBJECT ole_newmodule NO FLUSH.
  FREE OBJECT ole_module.
Execute the macro(s).
  macro_name = 'load_data_zsddxl'.                        
  CALL METHOD OF excel 'Run' = ole_run EXPORTING #1 = macro_name.                             
  FREE OBJECT ole_run.                                     
The automation trace gives me this message (sorry about the formatting):
<26=Automation:    CALL METHOD "Run" OF [#12/0x109B0C4C/101/Excel.Application.14]
                    #0: STRING "load_data_zsddxl"
<26=Automation(Error):    CALL METHOD "Run"[DispID=259] OF [#12/0x109B0C4C/101/Excel.Application.14]
                    #0: STRING "load_data_zsddxl"
IDispatch::Invoke raised exceptionThe remote procedure call failed
<26=Automation(Error):   
<26=Automation(Error):    ****************************ERROR OCCURED IN MODULE: [Microsoft Excel Application]**********************************************************************************************************************************
<26=Automation(Error):    PROGRAM_ID               |MODULE_NAME                     |METHOD_NAME             |ERROR DESCRIPTION                    |VERSION            |GUI VERSION               |MODULE_PATH                                 |
<26=Automation(Error):    **********************************************************************************************************************************************************************************************************************
<26=Automation(Error):    Excel.Application.14     |Microsoft Excel Application     |Run                     |The remote procedure call failed     |14.0.5138.5000     |Gui Version not found     |C:\PROGRA1\MICROS1\Office14\EXCEL.EXE     |
<26=Automation(Error):    **********************************************************************************************************************************************************************************************************************
<26=Automation(Error):   
What's strange is that if after starting Excel I set the property VISIBLE = '1', everything works as expected.
The affected users are running on Windows7 with Excel 2010.
Thanks for any direction you can provide.

No, I don't.  It's been my understanding that by omitting the "NO FLUSH" from a command, that the accumulated commands are flushed at that point.  But I'll give it a try.  Willing to try anything at this point.
Thanks.

Similar Messages

  • HT1925 After failed update of itunes yesterday, now will not run with error message "MSVCR80.dll can't be found, APSDaemon.exe not running".  Windows 7.

    After failed update of itunes yesterday, now will not run with error message "MSVCR80.dll not found" APSDaemon.exe will not run.  itunes will not now run.

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    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 this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • My office professional will not run with windows 8.1

    my office professional will not run with windows 8.1 It ran fine on 7 and 8 but not 8.1

      Microsoft Windows 8.1 officially supports all currently supported Microsoft Office versions including Office 2013 / 2010 / 2007 / 2003 , and may be even earlier versions unofficially. I use Microsoft Office Professional Plus on my Windows 8.1 and it runs fine with no issues.   Could you try what has already been suggested by others including Big_Dave and reinstall Microsoft Office with complete reboot/restart  between uninstall/new installation <restart, not shut down and start over>. If this doesn't work, please post again if installation went fine, what exactly is the error code (if any), what is the problem exactly, any screenshots ?

  • Adobe Suite will not run with most recent Java after I have installed Yosemite

    I have updated to Yosemite for my Mac, when trying to open Adobe Photoshop it prompted me to install Java 6, which I installed, then Java said to update to 8, which I did. My photoshop and other adobe suite programs still will not open (except Bridge) and keeps coming up with the error message to open the webpage to download DL1572.

    This is a strange error. I had the same problem but my CC is running.
    Which is your version of Photoshop please?
    Martin

  • HT5268 Just purchased Imac and Macbook pro and upgrades to Mountain Lion. Java will not run with one important site where my Grandson is in Kindergarten out of state with in room camera. What to do. This is very disappointing and non of apple geniuses kno

    My new IMac and Macbook Pro are each loaded with Mountain Lion. Have Office for Mac also
    When I try to see my Grandson on webcam out of state the login will not activate. For PC use I needed Java and Active X to let it run. My Java is checked as ready to go but nothing happens. Otherwise these are great computers. Please help me through the process. The Geniuses at my apple store can't understand what to do.
    [email protected] or [email protected]

    By default, OS X does NOT come with Java installed nowadays. You need to open the Java Preferences app found in Utilities; when you do that the first time, it will inform you of the fact and offer to install the product for you.
    Afterwards, due to a major security issue we had back in the first quarter of the year, the plugin is disabled by default. You need to revisit the Preferences and enable manually. It will auto-disable if unused in awhile.
    Lastly, you may have to adjust which Java instance is being used, the 32-bit or the 64-bit. Default is 64-bit, but some applets crash & burn or outright refuse to run in such a platform. You can prioritize which version you prefer by dragging on top in the Preferences.

  • Flash site will not run with Safari on a Mac

    A friend has helped me to develop a simple web site in Flash
    which I use to manage my photo galleries, which are created with
    Lightroom or Photoshop. I am familiar with most of Adobe CS3 except
    Flash or Dreamweaver, but I can get by with just editing text and
    uploading new galleries, so the site works really well for me.
    Unfortunately I have received feedback from people using
    Safari or Camini browsers and the Mac OS that the site will not
    open. They just see black and the message "Get Flash". The site
    works great on a PC using both I Explorer and Safari.
    I have no knowledge of how to overcome this problem and not
    having access to a Mac, no way to "fiidle about" and experiment. I
    would very much appreciate some advice from anyone in the know. The
    web site is at www.duncangrove.com . Please have a look at my pics
    if you check it out!
    Regards
    Duncan Grove
    (Apologies - I previously posted this in the wrong
    forum)

    Hi Duncan,
    In the Publish Settings window, in the HTML tab, at the top
    of the window under the "Template" option is a second option:
    "Detect Flash Version". Check this box. The AC_RunActiveContent.js
    file will contain a couple of functions that will test the user's
    plugin version. If it doesn't pass the test then the html page will
    show a message telling the user to get the Flash plugin and a link
    to the plugin.

  • Aperture will not run with new ATI 4870

    I just received my ATi 4870 card from Apple today. Installed it in my early 2008 MacPro. Card works fine for everything except when launching Aperture I get the error "The graphics card installed does not meet the minimum requirements for Aperture to run". Huh?? This is replacing a nVidia GeForce 8800 GT. The Ati is a newer, faster GPU than the nVidia and should absolutely run under Aperture. I'm guessing that Apple has not implemented the support for this card in Aperture, which is ridiculous since they're shipping it. Anybody else having this problem? Is there a work around until Apple fixes this?
    Thanks

    Chacro, it's definitely faster than my 8800GT. I don't wait nearly as long for images to render in Aperture, iPhoto, or Photoshop. I work strictly with Canon RAW 5DMarkII files that tend to be ~22-25MB and it loads 'em up like "right now" quick. Overall, I'm happy with it though it was a bit spendy. My advice would be to maybe wait for the nVidia GT285. Rumors are that Apple will be offering that in June, though I don't know if it will only be a BTO option, or sold separately as well. Sounds like that card is going to be just a little more expensive than the 4870, and will pack a full 1GB or RAM. I would have probably waited had I known that was coming when I ordered my 4870. I may wind up selling the 4870 then, or ordering a new MacPro with the GT285 option. Seems I can never have enough power to sling my photos around At the very least, I'll be selling the 8800GT though. Still a great card for someone looking for a bargain
    Thanks again!

  • Exchange 2013 EAC will not run with Exchange 2010 CAS\HT servers shut down.

    Hi Folks,
    A little background - We have just migrated all our user mailboxes and public folders to Office 365 using a hybrid configuration. Now that the migration is essentially finished, I'd like to decommission our on-prem Exchange infrastructure and remove the
    hybrid config. We are using dirsync with password sync to replicate our AD to the cloud.
    I've read that even if you remove your hybrid configuration, it's a good idea to keep one on-prem Exchange server around so you can edit Exchange attribs (such as email addresses) in a supported manner, rather than using ASDI edit, etc.
    To this end, I installed a single Exchange 2013 CA\MBX server. After installation, the EAC worked fine, and I was able to view our on-prem users, groups, etc. Last week, I shut down our two Exchange 2010 CAS\HT servers as a test to see if anything broke
    prior to decommissioning them (these were the hybrid servers as well). After doing so, the Exchange 2013 EAC no longer works for some reason, and behaves in a very bizarre fashion. About once every 20 times or so, it will actually start and run. The other
    times, it just has you enter your creds, then generates an HTTP 500 internal server error after entering them. It seems to make no difference if you attempt to access it by the fqdn, hostname, or localhost right on the box itself. Same behavior on Chrome or
    IE.
    Today as a test, I started up one of the 2010 CAS servers and lo and behold, the 2013 EAC ran without difficulty again. Any idea why this might be so? Thanks for any help,
    Ian

    Hi,
    From your description, I recommend you use the following URL to check if you can access EAC. I see it works for several people about this issue.
    https://<Exchange 2013 CAS FQDN>/ecp?ExchClientVer=15
    Hope it helps.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Project Runs With No Errors Compiled in VS2010 - Compiles But Will Not Run with VS2012 or VS2013.

    I am trying to do all of my work in Visual Studio 2013, but I have found that, in one case (at least), if I compile the project in VS 2013 or VS 2012, I get the error "Could
    not load file or assembly 'NationalInstruments.DAQmx, Version=9.4.40.50, Culture=neutral, PublicKeyToken=dc6ad606294fc298'
    or one of its dependencies. The system cannot find the file specified."
    Yes, I am loading a third party DLL and here's what is strange... If I compile it with VS2010, I have no problem - the program works correctly - no errors. If I take the same solution and load it in VS2012 or VS2013, it compiles cleanly and looks good (no
    errors and no warnings) - until I run it.
    So,  how do I get this to work with VS2013? And what changed? And with the number of developers in this company - it HAS to work with VS2010, 2012 and 2013 (different developers have different licenses), so how do I get that and how do I ensure that
    future development does not have this problem?
    The project targets .NET framework 4.
         Rob

    Hi,
    If the error occurred at a third-party dll, then it is out of support range of forums. Please consult your issue on the forums/communities provided by the third-party dll for better solutions and support.
    Moreover VS General Question forum mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Adobe Reader will not run with limited user account.

    I am trying to upgrade our Citrix Server Farm, from Reader 8.0 to 9.1, and am running into some issues.  First I uninstalled Adobe Reader 8.0 and then installed 9.1 from Adobe's site. Aftter the install completed I was able to run 9.1 without any problems.  However today, when some limited users started working, they started getting runtime errors.  This only happens with non-administrator user accounts.
    the error messages are attached.
    After clicking OK, Adobe Reader terminates.
    Any insight would be greatly appreciated.

    I do believe that I solved my own problem... almost.
    http://kb2.adobe.com/cps/404/kb404597.html
    "The affected user has a redirected Application Data folder and as a result the network path containing the Application Data uses a UNC path that begins with \\. This UNC path causes Acrobat 9.0 or Adobe Reader 9.0 to incorrectly parse the Application Data path and give the error message."
    The article tells me to upgrade to Adobe Reader 9.1...   WTF!!!  9.1 is when this problem started, 8.0 worked great!  I would stay with 8.0 if I could, but some of our programs require 9.1.

  • Downloading new version of itunes and it crashes my internet. Ipod touch will not run with out new version. Have done many system restores and reset internet settings but still crashes net when i download any version HELP please

    running windows vista prem. every time i try and down load the new version of itunes to laptop the net crashes when instalation is complete.
    Unable to conect to the net  and so unable to sync new ipod touch i then run a system restore.Then try and install itunes again . same thing happenes again
    Any help please

    There's a good guide here on how to roll back to 10.7 https://discussions.apple.com/thread/4559563?tstart=0

  • Will not install with Leopard

    I just migrated from an older iMac G4 to a newer iMac 2GHz
    Intel Core Duo. To my chagrin I then discovered that Director MX
    2004 would not work on an Intel machine. So... I upgraded to
    Director 11. After all the hassle of proving (once again) that I am
    an academic, I received the confirmation and link so that I could
    download and install the new version. Alas...! When I run the
    installer, it says: "This software cannot be installed because the
    file system of the OS volume is not supported." WHAT? Director 11
    won't install on Mac OS 10.5.2 (Leopard), but it will on Win-doze
    Vista???
    HELP! I need Director! It is the prime piece of software that
    I use to create programs for my classes!

    SujaiS: I found the problem! My hard disk was formatted
    "journaled (case-sensitive)". After searching through lots of
    discussions and support files, I learned that apparently several
    Adobe applications will not run with that format.
    I therefore had to boot from my Leopard install disk, erase
    and reformat the hard disk as only "journaled' (NOT
    "case-sensitive"), reinstall Leopard, then restore the contents of
    the hard drive from my Time Machine backup. I have since managed to
    install Director 11 just fine. It has shown some odd bugs, however.
    For example, a cast member with text (using an embedded font) now
    shows an exclamation mark on a following line... but there IS no
    exclamation mark to delete, let alone a following line! Weird! I
    tried changing to another embedded font, and the program crashed.
    Hmmmm.
    At any rate, I would suggest that Adobe needs to specify for
    Director 11, under Mac system requirements, that "case-sensitive"
    formatted hard disks will NOT work. That is a simple warning to
    include. Adobe is obviously aware of that incompatibility, since it
    mentions it under forums and technical issues for other programs.
    Shouldn't they list that system requirement from the get-go?
    Thanks for your suggestions!

  • Fast dial will not run need to get back to 6 of will try IE 9

    fox 7 will not run with fast dial need to roll back to 6 of will install IE9 7

    see https://support.mozilla.com/questions/885622

  • JDBC Driver 10.2.0.3 will not run under Java 1.4

    While using Oracle Database 10g Release 2 (10.2.0.3) JDBC Drivers my application will not run with Java 1.4
    I keep getting an ArrayIndexOutOfBoundsException, followed by a number. Running 10.2.0.3 with Java 1.5 does not give this error. If using Oracle Database 10g 10.1.0.2 JDBC Drivers that error does not occour either.
    I am running other applications with 10.2.0.3 with Java 1.4 that does not have this error.
    Anyone know about this problem?
    Stacktrace:
    java.lang.ArrayIndexOutOfBoundsException: 103205256
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java(Compiled Code))
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:810)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1039)
    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:850)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1134)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3339)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3384)
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
    at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
    at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
    at org.hibernate.loader.Loader.doQuery(Loader.java:674)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
    at org.hibernate.loader.Loader.doList(Loader.java:2220)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
    at org.hibernate.loader.Loader.list(Loader.java:2099)
    at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
    at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
    at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:362)
    at org.springframework.orm.hibernate3.HibernateTemplate.executeFind(HibernateTemplate.java:332)

    I did not know where to put it. I did a search and saw others who had postet here regarding Oracle driver.
    I do not know why it ended up here. I ment to post it at Java » SQLJ/JDBC
    Message was edited by:
    user619696

  • Oracle Driver 10.2.0.3 will not run under Java 1.4

    While using Oracle Database 10g Release 2 (10.2.0.3) JDBC Drivers my application will not run with Java 1.4
    I keep getting an ArrayIndexOutOfBoundsException, followed by a number. Running 10.2.0.3 with Java 1.5 does not give this error. If using Oracle Database 10g 10.1.0.2 JDBC Drivers that error does not occour either.
    I am running other applications with 10.2.0.3 with Java 1.4 that does not have this error.
    Anyone know about this problem?
    Stacktrace:
    java.lang.ArrayIndexOutOfBoundsException: 103205256
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java(Compiled Code))
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:810)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1039)
    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:850)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1134)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3339)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3384)
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
    at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
    at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
    at org.hibernate.loader.Loader.doQuery(Loader.java:674)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
    at org.hibernate.loader.Loader.doList(Loader.java:2220)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
    at org.hibernate.loader.Loader.list(Loader.java:2099)
    at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
    at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
    at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:362)
    at org.springframework.orm.hibernate3.HibernateTemplate.executeFind(HibernateTemplate.java:332)

    Use ojdbc14.jar with JDK 1.4.
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html

Maybe you are looking for

  • I GIVE UP!  Is it possible to uninstall Leopard and go back to Tiger?

    I am ready to give up for now. Is it possible to uninstall and go back to Tiger?

  • Downloads disappear into the ozone

    Desktop J3000 115 - Windows Vista Home -  Norton Security I have developed this problem in the last two months. I try to download files, anything from a jpg on hotmail to a service patch. It tells me it's downloading, gives me the time remaining bar

  • IPod Nano LCD screen cracking/scratching

    i am a possible, going to be nano buyer and i was wondering if anyone who is a owner has had problems with the screen cracking and/or scratching. Also this is a question for owners with the problem and APPLE if the screen gets cracked or overally scr

  • ? Flash CS4, Is it possible to adjust the length of multiple timelines at once?

    Hi, I am using Flash CS4. Is there any way to adjust the length of multiple timelines at once? I am doing an animation of leaves falling from a tree. The leaves alone have 17 separate timelines on separate layers plus each has it's own guide layer. I

  • Itunes shows a fault and it has to be closed

    when i try to open itunes then it says 'itunes has a fault and it needs to be closed down' i don't know what to do. i tryd uninstalling in and reinstalling it but it still shows the same mistake... if anybody here can help me or show a usefull topic