Excel COM object calls break with Office 2013 upgrade on 64-bit OS?

Out of the 1000+ computers in the company mine is the only one running 64-bit windows 7.  I have noticed that when i try to run a small DLL i created to convert Excel files to Tab Delimited files it is crashing only on my computer.
I have debugged the source code and found that there is no real exception being thrown except a popup does appear in the background stating "We're sorry, but Excel has run into an error that is preventing it from working correctly. Excel will need to
be closed as a result.  Would you like us to repair now? [Repair Now][Help][Close]"
If i open excel via the main application this same popup comes up and when i click repair excel closes.  when re-opened Excel re-activates and then works fine.
here is a sample of my (VERY simple) code which has worked for years on office 2007 with 64-bit OS:
Dim excelPath As String = "C:\test.xlsx"
Try
objXL = CreateObject("Excel.Application")
With objXL.Application
.displayalerts = False
.Visible = False
.workbooks.Open(excelPath)
.Workbooks(ExcelFileName).SaveAs(csvPath & csvFileName, Excel.XlFileFormat.xlCurrentPlatformText, , , , , Excel.XlSaveAsAccessMode.xlNoChange, , , , , )
.workbooks(csvFileName).Close(csvPath & csvFileName, savechanges:=True)
End With
Catch ex2 As Exception
Throw ex2
Finally
objXL.Quit()
objXL = Nothing
End Try
I have isolated the exact line that is causing the exception to be thrown... 
.Visible = False 
Why would hiding the Excel UI cause an error of "We're sorry, but Excel has run into an error that is preventing it from working correctly" to be displayed?
If i remark out this line then the application seems to work properly for me...

That I do not know. Do you have another machine where Office 2013 is installed, and where you can test? It could be system configuration issue, could be a change in the application behavior or a difference between 32-bit and 64-bit. You are updating
at least a couple of generations of software and now running in a 64-bit environment so there is always the potential for changes in behavior and software defects.
Unfortunately, I do not have Office 2013 64-bit installed so I cannot test this scenario.
You could also try posting to the
Excel for Developers forum to see if anyone has encountered the same issue when using Excel automation.
Paul ~~~~ Microsoft MVP (Visual Basic)

Similar Messages

  • Printer driver hangs when printing with Office 2013/Windows 8 64 bit

    Printer: HP Color LaserJet CM1312nfi
    Printer Driver: V5.1 (up to date, downloaded from HP support website) or Generic V5.6
    OS: Windows 8 Professional 64bit
    When I try to print a certain Excel document with Excel 2013 and printer driver V5.1, the program hangs and needs to be terminated via task manager. This happens always with the same document, but not with all documents. The program hangs also when opening the print preview for the same document.
    The same document prints fine with the generic printer driver V5.6 and with the driver that comes with Windows 8.
    The same document prints fine with driver V5.1 under Windows 7 and Office 2010. The combination Windows 7/Office 2013 was not tested. The combination Windows 8/Office 2010 was also not tested.
    When I try to print an empty document with Word 2013 and generic printer driver V5.6, the program hangs and needs to be terminated via task manager.
    My conclusion is that the HP printer drivers have a problem with either Windows 8 or Office 2013 or a combination of both.
    The printer driver that comes with Windows 8 and is automatically installed is useful as a temporary workaround, but it lacks certain options, e.g. manual duplex.
    On request, I am ready to send the Excel document by e-mail for verification of the problem.
    Any help or suggestions will be very much appreciated.
    Thanks in advance,
    Uli
    This question was solved.
    View Solution.

    From what you describe you are having issues printing from MS Office. Have you had trouble printing from other resources on your computer (e.g. from the internet or another program)? The first thing I am going to suggest is that we start by uninstalling and reinstalling the printer from the resources available online. 
    First if you use a USB cord, make sure to remove it (this is important). Do not plug it back in until the software directs you to. Then go through the Devices and Printers, Programs and Features and Device Manager folders and insure that all copies, files, and programs related to the printer are removed. Then as directed, restart the computer. 
    In the START menu type "%temp%" and press ENTER. Here I want you to press Ctrl+A and hit DELETE. Some of the files will not allow you to delete them, skip those files and delete the majority that allows it. 
    http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?prodNameId=3562006&lang=en&cc=us...
    Install that and let me know the result! 
    Have a great day!

  • Will macros in excel work properly if I switch Office 2013 32 bit to Office 2013 64 bit?

    hi,
    Will macros in excel created with Office 2013 32 bit work properly if i switch to Office Execl 2013 64 bit?
    Thanks

    Hi,
    As far as I know, most of the macros might work well between 32bit and 64bit Excel. But there are some limitations for Excel 64bit:
    Solutions using ActiveX controls library, ComCtl controls won’t work.
    Third-party ActiveX controls and add-ins won’t work.
    Visual Basic for Applications (VBA) that contain Declare statements won’t work in the 64-bit version of Office without being updated.
      Compiled Access databases, like .MDE and .ACCDE files, won’t work unless they’re specifically written for the 64-bit version of Office.
    More reference:
    https://msdn.microsoft.com/en-us/library/ff700513(v=office.11).aspx
    https://msdn.microsoft.com/en-us/library/ee691831(v=office.11).aspx
    https://support.office.com/en-sg/article/Choose-the-32-bit-or-64-bit-version-of-Office-2dee7807-8f95-4d0c-b5fe-6c6f49b8d261?ui=en-US&rs=en-SG&ad=SG
    If you have any further question about macros, I recommend you post the question to the MSDN forum for Excel
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    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]

  • Having issues with Myriad Pro Font with Office 2013 Products

    Have tried to install Myriad Pro Fonts manually on a windows 8 & 8.1 machine with office 2013 64 bit but it seems that the office products like work, excel do not pick up the right font even though its comes up as Myriad Pro in the font list.
    I have logged this Microsoft as well but still haven't had much luck. In Office 2010 it used to work fine as it a 32 bit product.
    Print Preview Word 2013
    You can see that when printed it brings the (C) from Page 2 to Page 1. Whereas in Word 2010 it is fine, it will print exactly what is shown above.
    Any assistance will be much appreciated.
    Thanks

    Unfortunately, there isn't anything much Adobe can do about this. It has nothing to do with what is in the Myriad Pro font itself, but probably has to do with improperly handling of OpenType CFF fonts.
    I myself have found a few bugs in Office 2013 in terms of OpenType CFF font handling, especially with regards to how Office 2013 saves PDF files (not when using the Acrobat “save as PDF” feature of Acrobat).
    Since this relates to print, you should also be aware that Office products do tend to reformat based on metrics at printer device resolution as opposed to screen device resolution and that such reformating often occurs if you compose with one printer selected and then select a different printer to actually print to. This particular problem in Office goes all the way back to the first version of Word.
              - Dov

  • HP Officejet 4500 Ethernet / Wifi Driver Problem (blank fields) with Office 2013

    Hi,
    I have an Officejet 4500 (Ethernet) and I have exactly the same problem as lots and lots of HP Printer owners!
    Everytime I try to print on Office 2013 + Win 8 64-bit, the Printer window comes with strange "Asiatic" symbols, and not the original language (Portuguese or English, I tried both). (Note: my father has exactly the same printer I have and he already had some problems also on Win 7 + Office 2010, then I deleted all HP drivers, installed again and it solved the problem)
    I already tried the menus you people talk about but in my model I do not have such options. I already installed everything again and again...and always the same problem! With another printer from another company I have no problems with the drivers on Office, so it must be from HP Drivers that do not get along with Office 2013!!! Please update them as soon as possible...

    Hello DaveZiffer,
    Welcome to the HP Forums.
    I see that you are having an issue since the installation of the Office program.
    Here is a link that will take you to the 4 updates that are available for your printer. 
    After doing the updates, if you are still having issues, please feel free to write me back and I will be happy to research this issue further.
    Thanks for your time.
    Cheers,  
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Is LiveCycle ES4 compatable with Office 2013?

    My network was recently upgraded to Microsoft Office 2013 and I have a LiveCycle user that reports she can no longer import documents from Word.  She is still able to create a document from scratch though.  We have un-installed and re-installed both Office and LiveCycle on her machine.  She is the only LiveCycle user I have, so I am unable to tell if it's an issue with her machine or with Office 2013.  Are there any known compatablilty issue with LiveCycle ES4 and Word 2013?

    Hello There,
    I am sorry for that but Captivate is not compatible with Office 2013.
    Please check the link for the compatibility between Captivate and Microsoft office: http://helpx.adobe.com/captivate/using/microsoft-powerpoint.html
    Hope this helps !
    Thanks and Regards
    Himanshu Satija

  • Trouble with Office 2013 and KMS activation.

    I have a KMS server running on Server 2008 R2 that was serving out activations for Windows 7 and Office 2010.  I ran the Office 2013 activation
    pack on the KMS server and now it also shows our KMS key for Office 15. I realize that I need a minimum of 5 in the count field in order for activations to happen.
    We use VMware VDI and I spun up a pool of 10 with Office 2013 installed on the master. Before creating the desktop clones, I rearmed the master and then shut it down, snapped it and created the desktop clones. I have logged onto most of the clones
    with a number of different user IDs and when I look at the KMS server it now shows that the count is 9 - so I would assume that my copies are being activated.  However, when I look at Office on the VDI clones or on my own personal computer that has 2013
    installed I see that the product still needs to be activated.  
    Yes we have the VL service record in DNS pointing to the right server - it's been there for ages taking care of Windows and Office 2010.  I did not have this issue with either of the other products and KMS.  I am at a loss as to what
    to do next.
    Thanx...

    check the client-side event logs for the SPP events (request/response), is the client (your pc for example), hitting the expected KMShost, and what response resulted?
    Also check the KMShost event logs, is the request from your pc arriving there, and what came in, and went back as a response?
    If you're not familiar with how to "decode" the events, check here:
    http://technet.microsoft.com/en-us/library/ee939272.aspx
    In case you have a "rogue" KMShost:
    http://blogs.technet.com/b/odsupport/archive/2011/11/14/how-to-discover-kms-hosts-via-a-dns-query-and-remove-them-if-need-be.aspx
    EDIT: PS, not that it matters for this question, but there is a dedicated forum for OFF2013:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=officesetupdeploy  :)
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Is Captivate 6 compatible with Office 2013?

    Is Captivate 6 compatible with Office 2013?

    Hello There,
    I am sorry for that but Captivate is not compatible with Office 2013.
    Please check the link for the compatibility between Captivate and Microsoft office: http://helpx.adobe.com/captivate/using/microsoft-powerpoint.html
    Hope this helps !
    Thanks and Regards
    Himanshu Satija

  • Reboot before sysprep when I want to add an installation task with Office 2013

    Hi all,
    I want to buid a reference computer with a genuine Win7 wim file, correct drivers, uptodate patches, and usefull applications. So I use a “Build and Capture Task Sequence”. The new reference image captured, I can use it with WDS or a media
    to any computers, using a second and different “Build and Capture Task Sequence.”
    All things were right, I could add Acrobat Reader, Java and some others application, but it failed when I tried to add “Add Application Task” with Office 2013. I could import the software, I discovered the new panel to configure config.xml
    and mychoice.msp, but when I run the Tasq sequence, when it begin to sysprep the OS, a few time before the capture, the computer reboots. Sysprep does not run, and the image is not captured.
    I can add any software installation in the Tasq sequence but not one with Office 2013.
    What do you think about this issue?

    Hi,
    Some pieces of advice, since I have managed to create a Windows 7 WIM file with Office 2013 embedded without any problems:
    Build your reference image in a virtual machine, not on physical hardware, to prevent a gigantic driverstore with drivers for one or more models, and having to rebuild your image every single time you use a new model. This is not how MDT works, MDT works
    hardware agnostic, since it inject's drivers of hardware for each model before the WIM file is applied to your target computer.
    Do you really want to embed applications like Adobe Reader and Java in the image? They have a release every month. Do you want to (or is there room for) updating your image every single month? Put them in the deployment phase of your task sequence. This
    way these applications are left out the WIM file, but are installed after the WIM file is applied to your system. Yes this takes a little bit more time when deploying a machine, but that's time you'll save on not managing your WIM file every single month
    Check your
    log files, make sure your machine is not Domain Joined, since that is the biggest mistake people make when sysprepping a machine. And check
    Setuperr.log for any sysprep errors. Guaranteed it has noting to do with Office 2013
    Good luck!
    If this post is helpful please click "Mark for answer", thanks! Kind regards

  • Acrobat XI combine to PDF feature is not working with Office 2013 is there a compatibility issue?

    Tested with Office 2010 and it works fine
    Seems to only be the combine to PDF feature that doesn't work, done updates, tried combining a variety of documents still no joy

    There isn't any compatibility issue with Office 2013 and Combine should work with office 2013 same as it with 2010.
    Can you please tell us some more details so that we can investigate the problem which you are facing:
    1) Please update the exact Acrobat version you are using. This you can find out via "Help -> About Adobe Acrobat XI Pro.." Version should be something like 11.0.x. If it is not 11.0.7, then please update it to 11.0.7 and try again.
    2) Is this problem you faced recently (after some update - Acrobat or OS update) or it never used to work earlier for you?
    3) You mentioned that when combining, it convert first document only. Can you please let us know how many documents you are combining and what are those formats?
    4) Also please update about you environment as well. Is you Operating System and MS Office 32bit or 64bit?
    Thanks,
    Vishal

  • I have upgraded Acrobat Standard from version 8 through time until I am currently using version X, which doesn't work with Office 2013.  Can I upgrade to version Standard XI?

    Over the years I have upgraded Acrobat Standard from version 8 to currently working with version X.
    However, since getting a new laptop it doesn't work with Office 2013.
    Can I upgrade to Standard XI?

    Upgrade pricing now only applies to version 9 and X. So if you have a retail serial number for X, you should be able to upgrade. (Or consider subscription).

  • Visio 2007 launch problem with Office 2013 installed "Please wait while Windows configures Microsoft Visio..."

    Running under WIN7-64 bit with Office 2013.  Requests reinstall every time it is run. Tried uninstalling and reinstalling. No change. Office 2013 does not recognize that Visio 2007 is installed. Copy paste operations between Visio and Word 2013 don't
    work. Tried disabling sharepoint access for Visio 2007 and did a repair for Office 2013. No change.Tried various compatibility modes. No change. Ran Microsoft troubleshooter which verified there is a compatibility issue but provided no solution.
    Tried the following...
    Type the following command, and then press Enter:
    reg add HKCU\Software\Microsoft\Office\14.0\Visio\Options /v NoReReg /t REG_DWORD /d 1
    no change

    Hi,
    Based on the situation, I recommend you try to use locale administer account to login in the computer.
    Then we re-install Visio 2007, if you solve the issue,please let me know.
    Regards,
    George Zhao
    TechNet Community Support
    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.

  • ICloud doesn't work with Office 2013

    I have a Windows 7 Enterprise x64 machine with Office 2013 Pro Plus x64. iCloud installs fine, but when I try to enable "Mail, Contacts, Calendars, & Tasks with outlook" and hit Apply I get:
    Also in outlook I go to File -> Options -> Add-Ins and the iCloud add-ins do not work.
    I'm using the latest version of iCloud control panel for Windows version 2.0.
    P.S.: I get what the trolls of lesser intelligence will boast out: "It's not supported, sorry.. just wait"
    Well, I don't want to. I want to use Offcie 2013 and I want my iCloud on it, so I'm looking for some of the higher-intelligence folks to conjure up some sort of workaround. Because waiting for Apple to update iCloud to work on Office 2013, would probably be after the new version of Office is out.

    No workaround. At least, a safe workaround.
    The final version of Office 2013 was released on October 24th on TechNet and yes, we need to wait for Apple makes some fixes in iCloud for Windows.
    Some tests on Virtual machines showed me that upgrades from Office 2010 to Office 2013 can work, with some tricks, but the result was not trusted.
    E.F.

  • Crystal report 8.5 export to csv and rtf format not working with office 2013

    Hi Experts,
    Crystal report version 8.5 hangs and eventually crash when i export my report to csv or rtf format on windows 7 with office 2013 installed, code is written in VB 6 although the same scenario is working with office 2010 installed.
    i debugged the code and found the application hangs at function Report.Export(False).
    below is the code snippet
           .PDFExportAllPages = True 'ePDFExportAllPages
           .PDFFirstPageNumber = ePDFFirstPageNumber
           .PDFLastPageNumber = ePDFLastPageNumber
           .RTFExportAllPages = True 'eRTFExportAllPages
           .RTFFirstPageNumber = eRTFFirstPageNumber
           .RTFLastPageNumber = eRTFLastPageNumber
           .UseReportDateFormat = eUseReportDateFormat
           .UseReportNumberFormat = eUseReportNumberFormat
           .UseReportNumberFormat = eUseReportNumberFormat
           .XMLAllowMultipleFiles = eXMLAllowMultipleFiles
           .XMLFileName = eXMLFileName
           Report.Export (False) ----Application hangs here and eventually crash
    Looking forward for your help, as it is very urgent
    Regards
    Mohit

    Hi Mohit
    CR 8.5, being about 15 years old, does not support Windows 7. I am surprised this works for you with MS Office 2010 and to be honest, I'd consider my self lucky there. The fact that is does not work with office 2013... well, like I said, lucky with Office 2010 and your luck ran out with Office 2013.
    Your option; rewrite the app in VS 2010 / 2012 / 2013 and use the CR Assemblies for VS .NET from SAP Crystal Reports, Developer Version for Visual Studio .NET. The CR Java SDK would be another option.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Is RoboHelp 9 compatible with Office 2013?

    Is RoboHelp 9 compatible with Office 2013?

    Not officially. If you want to import or link, then it will not work. However, if you only need to create printed documentation, then right click the print layout and select Properties. That way it will work. Obviously if you hit problems, Adobe will not support that but chances are you will be OK.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for

  • Safari upload issues

    Issues with uploading pictures with Safari, recently on both our computers PC we have had issues with Safari uploading pictures let's say to facebook, yet tried with internet explorer and it worked.  I can select the photo but then it does nothing, o

  • The Sims 3 won't install on my macbook pro?

    I bought the instant download for The Sims 3 from Orgin today. I had no problem downloading it, but now I cannot get it to install. I know my specs are okay but here they are just in case: Processor: 2.8 GHz Intel Core i7 Memory: 4 GB 1333 MHz DDR3 G

  • CFLAGS for Intel Core 2 Duo T7200

    Which compilerflags are optimal on the T7200, both when using i686 arch and x86_64? this could be: -mtune, -march and -mcpu

  • Does Elements no longer recognise your Handycam?

    Despite having previously used my Photoshop Elements programme to download and edit from my Sony Handycam, it now comes up with the message 'No DV camera is detected'. Any idea what has happened?

  • Passing parameters from webdynpro to rfc and displaying pdf in portal

    Hi, I am creating a webdynpro application where in I am using the following code for catching the current user who has logged into the portal. try{ IWDClientUser user = WDClientUser.getCurrentUser(); if(user.isAnonymousUser()){ //User is anonymous ..