Can't open excel file after saving and closing excel with activex

I'm using activex to write and save excel files in LabVIEW. My application opens excel (not visible)writes a file, saves it, and then closes both the file and excel. When I try to open the file Excel opens but the file is not displayed, I see the excel header and footer but the file itself does not display. My application is still running at this point. Any suggestions?

It is critical when using ActiveX with Excel that ALL refnums be properly closed when they are no longer used. Just a single refnum left open will cause the exact situation that you describe. Typically, but not required, the refnums will be closed in the reverse order in which they were created. Here is a good sequence:
Open Application ref
Property Workbooks ref
Open Workbook ref
Close Workbooks ref
Select Sheet ref
Select Range ref
Write Value2 to Range
Close Range ref
Close Sheet ref
Save Workbook
Close Workbook ref
Close Application ref
When you have properly closed all refnums, the problem will disappear.
Michael Munroe
Certified LabVIEW Developer
www.abcdef.biz
Michael Munroe, ABCDEF
Certified LabVIEW Developer, MCP
Find and fix bad VI Properties with Property Inspector

Similar Messages

  • Can't open PSD files after saving them

    I haven't ever had this issue before and now have had it twice in the last week or so. I scrap all the time and now after saving the file as a PSE, when I go to reopen from inside Photoshop Elements 7, it's telling me it can't be opened because it's not the right type of file. Any suggestions. I am using Vista but of course have been using the same computer with no problem up until now.

    I figured it out myself. Both files I could not reopen were named for teachers. So they were Mrs. so & so. The period in the file name was causing it not to be saved correctly I suppose. When I restarted the Layout again and saved it, I saved it without the period and then no problem at all. Just wanted to let those reading know...

  • Can't open my file after saving.using labview 8.2.1

    Hi there, after saving my program, i can't access/ or open my program again, but my subVI can be open, this puzzled me. Can anyone help me with this. i have attach the program,. it also prompt me (this resource you are attempting to open was created in a more recent version of labview and is incompatible with this version). And my Uni is using labview version 8.2.1, no other version.thanks alot
    Regards:MKK
    Attachments:
    cyclodrive combination programme.vi ‏87 KB

    I can't open it either...
    You should always keep back-up....

  • CV02N - leaving document after saving and closing excel

    Hi all,
    i change a document (excel file) in transaction cv02n.
    Now i save the file and close excel.
    After that the document is automatically leaving to the initial screen of transaction cv02n.
    How can i avoid that? Customizing?
    Perhaps i want to change the document object itself..
    regards

    Hi,
    i have found the solution.
    Customizing: Define workstation application
    Type: Fr
    Appl. XLS
    AT: 2
    Application: %auto% %NO-LEAVE%
    regards

  • I can't open pages files from USB and iCloud due to : "The necessary file index.xml is missing".

    I can't open pages files from USB and iCloud due to : "The necessary file index.xml is missing". Original file is written on iMac (2014) and saved to an USB stick and then transferred till macBook Pro (2009, Yosemite) for editing. Then I shared the files by iCloud but I am not able to open them on iMac again. Niether can I use the USB stick to transfer the edited files back. I'm running Pages '09 4,1 (923) on the macBook and Pges 5.5.2 (2120) on the iMac.
    Håkan

    Pages 5.5.2 is extremely incompatible with even other Macs let alone the vast majority of PC and MsWord users out there, so not a good idea to leap into the fire with both eyes shut.
    After having done that to the first Pages 5 files, Apple has repeatedly done it to even the most minor point updates. Apple can't even anticipate its own erratic changes let alone what everyone else needs doing.
    Peter

  • Can't open Numbers file after moving it back to Mac from Dropbox

    Please help!  Can't open Numbers file after moving it back to iMac from Dropbox.   Says I need the newer version of Numbers each time I tried to open the file.  I am 100% sure that I had the newest version.   Spoke to the AppleCare guy and after doing the checks he is also sure that I had the latest version of Numbers and AppleCare can't help.  He suggested that maybe i should run it on a file repair program...any suggestion?... please help...

    I've read reports of people having trouble when storing Numbers 3 documents on Dropbox.  I think it's related to the fact that they're not really "files."  They're "packages" that look like files. I had thought that Dropbox had cleared this up with their latest update. You should be on Dropbox version 2.4 or later.
    If you have Time Machine you may have some luck going back in time and restoring the document from a previous version.
    Storing Numbers documents on iCloud works much better, at least for me, and (unlike Dropbox) iCloud facilitates automatic syncing to other Macs and iOS devices signed into the same Apple ID.
    Perhaps you could consider keeping Numbers documents in iCloud instead. iCloud is deeply integrated into the app, and now works well.
    SG

  • Error while opening pdf in reader in windows 8:Can't open this file. There's a problem with file format

    I have a problem with a pdf file which does not open with reader in windows 8 but it opens properly with adobe pdf reader. All other pdf can be opened in reader.But when i open a pdf(see this link for pdf for which i got error http://incometaxsoft.com/temp/Form.pdf)
    it gives error as "Can't open this file. There's a problem with file format".
    The same file opens properly in adobe pdf reader.You can check the pdf file which i have mentioned in the link above.But the reader which comes with windows 8 can open some other pdf in the same PC.What may be the error causing this??

    This has turned out to be an enormous issue for me as I sell PDF files as ebooks. I have done a fair amount of investigating this for my system.
    My files have to be compatible not just across readers but across operating systems.
    To date, I have over 200 PDFs that have functioned flawlessly across Mac, PC (Windows 7 and below), Android, iPhone/iPad, Linux.
    I personally test my PDFs using a variety of readers and PDF editors including
    PDF XChange (my favorite)
    Foxit (runner up for me and I recommend for most people)
    Adobe (the bloated monster)
    Nitro 9 (great for moving graphical elements around)
    ABBYY
    And the Nuance PDF Create toolsets
    Those are off the top of my head. There are a bunch on Android that I test with too.
    I am running the Windows 10 Pro Tech Preview and I have this same problem so I know it isn't fixed yet in any kind of pre-release way (-sigh-)
    Here is what I've learned for my situation
    The PDFs I created using NUANCE'S PDF CREATE PROFESSIONAL VERSION 8
    all fail using the built-in Windows 8/10 PDF reader.
    When I look at the PDF properties for these Nuance created files, the underlying engine used to write them is called "ImageToPDF". Using ABBYY it indicates their own engine as does everyone else that I've tried. It is easy for you to check to see
    what created your PDF by doing a "Control D" (look at the document properties). Perhaps there's a common engine causing issues.
    If I use the exact same source files to create a PDF using any of my other tools I have no issues. I checked the PDF versions made by the tools and they are all set to 1.5.
    A customer mentioned being able to convert them in a way they worked by saving them without having to do any kind of extraction, but I have not been able to duplicate that. Perhaps he did a "print" which seems like it could work.
    In summary, the workaround everyone is talking about, using an alternate reader, of course works. But not everyone wants to change.
     The culprit I have found is my Nuance PDF Creation tools that are using the ImageToPDF engine.
    I hope it gets FIXED as I really don't want to have to regenerate all of my PDF files.

  • Can't open keynote file after upadating to 1.3.1 !!

    I have error opening keynote file after upgrading 1.3.1
    strange thing when i updated keynote to 1.3.1 was that the stripe above the screen changed to dark gray to white!
    I thought that was new interface but suddenly it has error opening the file.
    So i tried to open through webDAV, itunes, but after downloading the 180mb file of keynote, it shows that it has errors for opening files!
    this backup keynote file worked just great on 1.3 vers.
    http://dl.dropbox.com/u/10521896/NY%20Branch%20Report.key
    is the file,
    would you plz test the keynote file, which was working just great before bringin he

    I tried your file on the iPad and Keynote crashed. Then I transferred the file to my Mac, opened it in Keynote on Mac, saved it, and synched back to iPad. Now I can open the file on the iPad -- it takes some time due to all the images. Also, here are some delays between the slides when presenting on the iPad.
    BTW: Make sure to use the latest version of Keynote on Mac (5.0.5).

  • Can't open CR2 files in photoshop and camera raw

    This weekend I rented a Canon 5D Mark iii. I have downloaded the files and all of the thumbnails in camera raw say CR2 and when I try to open Photoshop does not recognize this product.
    I have:
    Photoshop CS4
    Camera Raw CS4
    Canon 5D Mark ii
    I have checked my updates folder and all my updates are current. Do I need to upgrade to CS5 or is there a way around this?

    Hi I recently had a problem opening CR2 files in PHotoshop cs4. I had to reinstall into a new computer, so obviously it installed the basic programme and not the updates.
    After trying everything, even calling the help desk, there was apparently nothing that can be donw as they no longer support cs4.
    I kept trying and found a you tube video, which i cant find again to add the link but i followed the link and with what I did earlier I can now open CR2 files in my photoshop cs4
    I found the relevany update that I needed to install and downloaded it, camera raw 5.2 ( Adobe - Adobe Camera Raw and DNG Converter : For Windows : Camera Raw 5.2 update )  this is the one for the Canon 5d Mk2
    After downloading it would not update the progeramme so I was in the same possition, but i noticed the files were there and i just needed to put them in the right place in photoshop so carried on looking for were to put the Plus In.
    This led me to the video.
    To the point.
    Download the update and save to a location where you will remember.
    open Adobe photoshop and go to "edit"
    Them " Preferences "
    then "General "
    Then " Plus-Ins"
    At the top you will see " Add Plug-Ins Folder " Check this box then navigate to the "win64" ( this is because mine is a windows 64 bit computer and the download is specific ) and Choose it.
    Shut down photo shop and try to open a raw.
    Bridge doesnt work for some reason but im going to keep looking.
    Hope this works for you as well.

  • My Safari can´t open .dmg files after downloading

    I updated to Mac OS X 4.9. But since this update, Safari cannot open .dmg files after downloading! On 10.4.8 it was not a problem. What can I do?
    eMac G4 PPC   Mac OS X (10.4.9)  

    Darn...I thought that would do the trick.
    Given the other problems you mention, more and more, it seems a reinstall of the OS, using Archive and Install is going to be necessary. Have you ever done an Archive & Install of the OS? Important you carefully read the description of the process. If you are uncertain, I find the Take Control Upgrading to Tiger E-zine to be a very helpful guide.
    Once you reinstall the OS, then you can upgrade to 10.4.8 using the combo update, repairing permissions via Disk Utility in your Utilities folder when complete.
    One question: Not sure why you have run into all these problems on the 10.4.9 upgrade. It worked without problem for me. Anything unusual happen during the install?
    Message was edited by: Hawaiian_Starman

  • Can't open project files after upgrading to FCE 3.5.1

    I bought a new MacBook Pro and sold my PowerMac, so I bought the 3.5 upgrade to FCE. I was using 3.0 before on my PowerMac.
    I copied my project over, but when I try to open it it just gives me a dialog box with "General error" and an OK button.
    How do I get my project open???

    Make sure you have the latest version of Quicktime
    Quicktime is up to date.
    I solved the problem with the help of Tom Wolsky. What finally worked was taking the project file to my wife's C2D iMac, opening the file there, saving it as a 3.5.1 file, and copying it back to my MacBook Pro.
    The weirdest things to me are:
    1) That there was any problem at all to begin with on my MacBook Pro C2D
    2) That there was no problem on my wifes iMac C2D
    3) When Tom Wolsky opened and saved the file in 3.5.1 format for me it didn't work, but that worked when I did the same thing with my wife's machine.

  • Can't open .DNG files in Preview and others

    I am using Adobe DNG converter OR Lightroom to convert .RW2 from a Panasonic Lumix 3 to .DNG
    This works:
    1. Working with files in LR
    2. Use PanoMaker to create panoramas
    3. Create HDR with Photomagix
    This does not work
    4. Open files with MAC OS X 10.4.11 Preview (Vorscha) even though thumbnails look ok.
    It says (in German) that it can not open the file
    5. View files in Houdahgeo - Adding GPS info works
    5. Use Photomagico to creat slide shows - only see thumbnails at the bottom
    I also played with the settings in Adobe DNG Converter and LR (Raw 2.4, 4.1, 4.6, 5.4, User...Linear...Not compresse) but it did not help.
    I searched multiple forums, found the problem twice mentioned on the side but never resolved. One hinted that its a problem since 10.4.11
    Message was edited by: schillab

    Hi,
    (1) I'd think that if Adobe makes a XYZ to DNG converter for MAC OS X the goal would would that the following can open such a DNG file
            (a) All Adobe Apps ..... it works ....... mission accomplished
             (b) The native DNG viewer in OS X  which is "Preview" .... it does not work!!!
             Note: the above works if XYZ is Canons RAW.  If it is coming from a Panasonic LX3 one is out of luck
    (2) I just tried the above with LR 2.6RC and DNG Converter 5.6. Nothing has changed.
    Anybody having an idea? work around?
    Christian

  • Help - Can't open Adobe files, after expiration of Adobe pro free trial

    I had a 30-day free trial of Acrobat 11 Pro, since the free trial expired a few days ago I can't open Adobe files. When I try to open them a pop-up box appears telling me to buy Acrobat 11 Pro...when I decline, it automatically closes Adobe
    I want to read files with just basic Adobe reader (not Acrobat 11 Pro) and I don't know how to make it my default
    Do I need to purge Acrobat 11 Pro? (I'm using Microsoft OS)
    Thanks!

    Use the Adobe Cleaner to remove Acrobat and Reader COMPLETELY: http://labs.adobe.com/downloads/acrobatcleaner.html
    Download the offline Installer to reinstall Reader: http://get.adobe.com/reader/enterprise/

  • Can not open psd file after electricity failure!! help""

    Please help me how to open psd file. I have been working on one project. It has been saved. After that electricity failure in our house happened and now I can not open it. It is saying: Could not complete your request because the file is not compatible with this version of Photoshop.
    Thank you for help.

    Have a look at this:
    Salvaging damaged PSDs
    Mylenium

  • Can't open pdf files after downloading from Safari 6.0.5

    I was wondering whether anyone else has encountered this bug. Ihave a retina MBP with Safari and Firefox. If I save a pdf to the desktop via Safari I get the following message when I try to open it "There was an error opening this document. The file is damaged and could not be repaired".
    When I download the same file via Firefox, it opens no problem.
    It would, therefore seem to be a Safari 6.0.5 pdf problem, rather than an Adobe Acrobat Pro (11.0.3).
    I have tried with both extension displayed and not displayed options, no difference.
    Can anyone suggest anything?
    Thanks for reading.

    I encountered the same problem.  In my case, the culprit was a plug-in in the Internet Plug-Ins sub-folder of my User Account's Library folder.
    Here's how I proceeded, based on a suggestion by Carolyn Samit here:
    <https://discussions.apple.com/thread/5117605?start=0&tstart=0>
    1. Open the Finder.
    2. In the Finder menu bar, click on the heading Go.  Scroll down to "Go to Folder," and then click the mouse button again.
    3. Copy the following phrase:
    /Library/Internet Plug-Ins
    and then paste that phrase into the field in the navigation window that appeared at the end of Step 2.
    3. Click Go.
    4.  If you find a plug-in named AdobePDFViewer.plugin, drag it to the Trash.
    5. Quit and then relaunch Safari.  Then try to load in Safari a PDF from a web site.  Then try saving it.  Once saved/downloaded, try opening the PDF.
    When I followed this procedure, the corrupted-PDF problem went away, thanks to Ms. Samit's suggestion.

Maybe you are looking for