Automation Open and Automation Close (Excel)

Hi
I am using ActiveX to write and read from Excel.
I am writing a program which a case statement is involved. When the boolean is true, the program in the case statment (View Result.VI) will open Excel and display the last save filename file. I run this program individually and not part of the main.vi program.
It displays the filename but once I close the file, the Excel also closed which I don't want it to do that.
I run my Main.vi (together with the View Saved Result.vi) and when I want to view the result, the program open Excel, but then, the screen hang and does not load the Excel properly. But when I run the View Saved Result.Vi, it does load properly.
I was wondering should I use Automation Close f
or every Excel workbook, worksheet or Invoke nodes which I have used in my program.
Please look at my JPEG file for understanding.
Thanks,
jun
Attachments:
Capture_3.jpg ‏53 KB

I would not call Automation Close for each one. Once you call Automation Close, Excel will exit. That's just how ActiveX is built to work. As long as you want to leave the application open, you shouldn't close the ActiveX Automation controller.
I would actually suggest gettings the LabVIEW Report Generation Toolset for Microsoft Office. I have found it to be extremely helpful and it's actually quite easy to do what you're wanting to do with this Toolset.
J.R. Allen

Similar Messages

  • Every time I try to open Firefox I get a popup saying it is already open, and to close it or restart; but it is NOT open, and restarting doesn't help.

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/880054]]</blockquote>
    Question
    Every time I try to open Firefox I get a popup saying it is already open, and to close it or restart; but it is NOT open, and restarting doesn't he

    Duplicate Thread LOCK please
    * Continue here - https://support.mozilla.com/en-US/questions/880054

  • Why doesn't firefox close out when I'm done with it and close it; when next I try to open firefox again I get a dialog box telling me firefox is open and to close it or restart my computer? I'm tired of doing that one of more times a day.

    1. This happens at least once a day, and sometimes multiple times. Today it's happened twice, thus far. My home page is FoxNews.com and if I leave it up overnight or for longer periods during the day firefox doesn't allow the refresh of the home page it just goes to yahoo 404--error can't find the webpage. Then when I enter FoxNews.com it adds a /error to the url and doesn't allow me to go to MY homepage. So I close firefox and then if I try to reopen it and then I get the dialog box saying firefox is open and to close it or restart my computer. Very aggravating. 2. Also the Adobe flash drive update always fails. 3. Webpages get in loops and fail to load to the point I have to stop and refresh or close out and reopen.

    One situation in which Command+w or Ctrl+w might not work is if the "focus" is in a plugin such as the Flash player used on Youtube after you interact with the player controls. Firefox will continue to send the keyboard input to the plugin until you move the focus back to the page. Does that account for any of the problem?

  • The window 8 store and all other app open and then close immediately .

    The window 8 store and all other app open and then close immediately .I
    have tried many methods like sfc /scannow,, powershell
    -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\WinStore\AppxManifest.xml without the quotes but , changed registery entries but found no effect . kindly help me !

    Hi ObaidMaki,
    This forum is to discuss problems of Windows Forms. Your question is not related to the topic of this forum.
    I would suggest you posting it in the dedicated Windows Forum
    http://answers.microsoft.com/en-us/windows for more efficient responses, where you can contact Windows experts.
    Best regards,
    Youjun Tang
    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.

  • Adding javascript to page open and page close in acrobat 8.1.2

    Reading the Acrobat Javascript Object Specification on page 22 it says that you can add javascript to the "page open" and "page close" events of a document.
    It then says that under the menu "Document -> Set page action" you can add scripts for those events
    I am using Acrobat 8.1.2 and under the document menu there is no "Set page action". And there is nowhere where I can find any "set page action" menu...
    whats the deal?
    How can i set the page open and page close events in acrobat professional 8.1.2?????????????
    Marc

    - open the Navigation Panel 'Pages'
    - select the page and open the page properties
    - in the actions tab you can set the page actions

  • When i have 2 firefox widows open and i close one of them the other window asks if i am sure abt closing it too

    I upgraded to firefox 4 and that started since then
    when i happen to have 2 window open and i close 1 the other main one i have open with tabs ask me if i was sure i want to quit it too
    and it asks 2 times

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • When I have the downloads window open and I close the browser window, how can I get the browser to open the homepage the next time I start it while the download window is still open?

    When I have the downloads window open and I close the browser window, the next time I reopen the browser while the downloads are still going, it returns me to the last page I was on. All previous versions of Firefox would return me to my homepage which I would prefer. Please let me know if this is possible.

    When you re-open Firefox and choose Restore Session, by default it picks up your most-recently-open window, and the other windows should then show up in Recently Closed Windows.
    The Firefox add-on Session Manager lets you manage how many closed windows and closed tabs are saved, in case it's not enough.

  • How do iI close my apps  I have over 20 open and cant close em down

    How do I close my Apps I have over 20 open and cant close em down

    Not all the apps are open. When you double tap the home button that just shows you apps that you have recently used. They are not all open and running.
    If you want to clear this list, swipe up on the app screenshot.

  • Spry Accordion - Tabs open and then close after page loads

    I am using a Spry Accordion menu driven from a database.
    The menu opens up during the page load and then closes.
    I'm using SpryAccordion.js 1.6.1
    And to open a preset tab, I'm using:
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1",{useFixedPanelHeights:false, enableAnimation: false, defaultPanel: 0 });
    //-->
      </script>
    But, all of the tabs open and then close on page load.
    My page:   http://www.texashotjobs.us/00C01.aspx
    Any fix for this??
    Thanks, Ron

    Well to both thanks.  Actually I wasn't disappointed as I had a two part question...
    I tested the 1.6 JS and remembered that I had to modify the 1.4 so that tabs actually would link.  So I reverted back to 1.4.
    So, going to 1.6 fixed the open panel on load but "unfixed" the panel tab from linking.....
    So changing this in the 1.6 js fixed the link issue as well:
    Spry.Widget.Accordion.prototype.onPanelTabClick = function(e, panel)
        if (panel != this.currentPanel)
            this.openPanel(panel);
        else
            this.closePanel();
        if (this.enableKeyboardNavigation)
            this.focus();
    //    if (e.preventDefault) e.preventDefault();
    //    else e.returnValue = false;
    //    if (e.stopPropagation) e.stopPropagation();
    //    else e.cancelBubble = true;
    I t appears everything is working........
    Thanks, Ron Gaddis
    Visual Reality Productions

  • I have acrobat standard and it will not allow me to edit.. every file i go to open it says "there is a active file open and must close in acrobat" other times it says account cannot be validated after I have already paid for it.. please advise

    i have acrobat standard and it will not allow me to edit.. every file i go to open it says "there is a active file open and must close in acrobat" other times it says account cannot be validated after I have already paid for it.. please advise

    Hi Timothy,
    The account cannot be validated error was due to a glitch on our activation server that has been fixed now.
    Please try using acrobat now and check if you are still facing the problem.
    Regards,
    Rave

  • Can anyone advise how to close apps on iPad with new iOS? I have multiple open and cannot close them.

    Can anyone advise how to close apps with the new iOS?  I have multiple open and cannot close them

    Double-tap on the Home button. You will see a preview of the app above the actual icon. Slide the preview up to kill it.
    Please get the iPhone User Guide (For iOS 7 Software)Sep 19, 2013 - 23 MB.

  • Downloaded Apps open and then close immediately

    The downloaded apps, not the apps that came with the phone, close immediately after i open them. i have reseted it multiple times and it doesnt work. HELP!!

    Hi there,
    I too have just experienced this, I suspect because I hooked my iphone up to a friends laptop when visiting on holiday (in Canada) and thought that rather than opening a new topic, I'd add on the end of this one...
    I have tried all suggestions found on Google (a restore, de-authorising my laptop and re-authorising with the itunes store, not syncing apps, downloading a new app (on the iphone and on my laptop) and then re-syncing and none of this has worked.
    Interestingly, if I download a brand new app via my laptop and sync it to my iphone, it works but all of my old apps restored from the backup open and then close within 2 seconds.
    Can anyone help?
    Thanks!

  • My faves open and again close in nokia 5230

    Hi all,
    I have T-mobile Nokia nuron 5230. When i tap on "myfaves" icon onhome scree. ...it just open and again close.....why?
    i use my faves a lot....please help me as soon.
    thnks a lot in advance...
    plz reply

    finally i got solution...... .soft reset ...is solution for any little proble of nokia 5230.....press *#7380*....and your every problem with nokia is solved,....
    enjoy
    thnks

  • Every time I click an app the app opens and then closes right away.  any idea why?

    Every time I try to use an app when I click on the app it opens and then closes right away.  Any idea what I can do to fix that?

    Try this:
    1. Close all apps in the Task Bar. Double-click the Home button and hold apps down for a second or two. Tap the minus sign to close app.
    2. Hold the Sleep and Home button down until you see the Apple Logo.

  • I updated my iPhone 3GS on iOS 5.1 everything is ok but when I tap a message in notification area a SMS error comes "This URL wasn't loaded: sms:/open?groupid=1." and when i tap on messages app open and then close certainly... Please anyone helpe me......

    I updated my iPhone 3GS on iOS 5.1 everything is ok but when I tap a message in notification area a SMS error comes "This URL wasn't loaded: sms:/open?groupid=1." and when i tap on messages app open and then close certainly... Please anyone helpe me......

    Forgot to mention I live in Peru Southamerica, the cell provider is Claro (America Moviles).

Maybe you are looking for

  • Where is Content-Aware Age Tool in Photoshop CS6?

    Was it suppose to be in the final release of Photoshop CS6?  If you go to this link http://www.practicalphotoshopmag.com/2012/04/01/photoshop-cs6-to-feature-content-aware-age -tool/ It states it was on beta version of Photoshop CS6 but no one have a

  • How to pass data more than raw limit..

    Hi, How can i send msg payload which has more data than 32k. I dont want to use OCI. I am trying to send a BIG XML through AQ. Thanks Dhiraj. Note in docs below it says::: For PL/SQL, Java and precompilers the limit is 32K; for the OCI the limit is 4

  • Apple mail junk folder old mail

    My apple mail junk folder keeps filling up with old mail that i have deleted.  How can I stop it.

  • Can anyone help with a compatibility issue with EZ vinyl/tape converter?

    I have been using EZ Vinyl/Tape Converter in conjunction with an ION turntable to transfer all my old vinyl into iTunes. I have had no problems until the latest version of iTunes was downloaded and installed. Now, if I attempt to import a track using

  • Zip created through java.util.zip but problem in windows XP compress folder

    Hi friends, I am a software developer ,working on java/j2ee.currently i am working in a document management software related to logistics.Here i am facing a problem at the time of open the zip file through windows XP's in built software called "Folde