Open file in excel from labview

I need a way to open an existing Excel file, that may or may not be open already.  I am using the attached "Open Specific WorkBook.vi" from the examples.  My LabVIEW program must be able to either open a specifc Excel workbook and worksheet even if it is already open.  Is this even possible, or would it be better to close it (if open), the open it again?
Attachments:
Open Specific WorkBook.vi ‏37 KB

As you probably know, nothing "bad" happens when you open Excel if it's already open, it just doesn't come to the front of your LabVIIEW ap. To get it to the front, Minimize the Excel window then immediately Maximize it (or Normalize it) programmatically with a PN.  I have tried many of the other methods (but not all of them) to no avail, this works for me. There may be a more elegant solution.
There are other known methods to bring an ap to the front, with callbacks etc, but they can be clunky, or require Userlib32, etc. Since this property node already exists in your ap, it's comes at little expense.
Of course, you may want to check that the ap was open before you do this, but even that is optional, at the expense of a little flashing on the screen.
Richard
Attachments:
windowState.gif ‏4 KB

Similar Messages

  • Unable to save or open files in Excel from Office 2011 on my Mac Air with Mountain Lion?

    Excel 2011 no longer saves or opens files?

    I found this page under Microsoft's web area listing known issues with Excel 2011 on the Mac.
    One is entitled "You cannot save a file that includes a hyperlink".  That and/or other references on this page might be helpful.
    http://mac2.microsoft.com/help/office/14/en-us/word/item/4ba243ae-1afa-4283-ba6a -d2a020dcc07a

  • Open CSV files in Excel through labview

       Dear,
    Am not famillar with *.csv files but I would like to know if it's possible to : open a CSV files in excel through labview.
    I can't used ActiveX for my application. This application is on Labview 8.2
    Regards
      Massif

    Hi Massif,
    a .csv file is a spreadsheet file, so use the "open spreadsheet file" VI.
    Cheers
    Edit:
    Dang, I'm always 30seconds behind you smercurrio!
    Message Edited by lmtis on 04-22-2008 10:27 AM
    Jim
    LV 2013
    Attachments:
    csv.png ‏2 KB

  • Error -2146960888 when opening excel from labview using active x

    attempting to open an instance of excel from labview using active x, I even tried using the "open excel and make visible.vi" found on this site. I get errors every time, Inserting a break right after the property node, I found that it does open excel with no active workbook. once the program runs to ompletion excel terminates. The error is on the line right after the property node executes.

    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3F15456A4E034080020E74861&p_node=DZ53003&p_submitted=N&p_rank=&p_answer=&p_source=External
    Attachments:
    XL97table.zip ‏29 KB

  • Developers I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsb

    mule13470 
    Apr 3, 2014 11:12 AM 
    I tried simply renaming them however it just corrupts the files when I do it like that so I need the applescript to open the files in excel and the save them as .xlsx to test I only need it one folder but if it works I'd like to be able to do it for all documents with .xlsb extentions that are in a huge folder with subfolders that contain a mix of .pdf, .docx, .xlsx and .xlsb. Please Help.
    Applescript Editor, Mac OS X (10.6.8) 
    I have this question too (0) 
    Reply
    Categories: Using OS X MavericksTags: mac, help, finder, excel, applescript_editor
    Level 1 (0 points)
    mule13470
    Re: I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsbApr 3, 2014 11:19 AM (in response to mule13470) 
    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

  • Hello, sombody knows how to start MS Excel from LabView (version 8.2)? Thanks

    Hello, sombody knows how to start MS Excel from LabView (version 8.2)? Thank you in advance.
    Regards Robert

    In the example finder  ">Help>Find Examples >>search for Excel", you'll find a sample program called "ActiveX Event Callback for Excel".
    It opens the Excel Application..  You can build on this to open/create new worksheet(s), etc.
    RayR
    Message Edited by JoeLabView on 06-20-2007 08:21 AM
    Attachments:
    OpenExcel.PNG ‏34 KB

  • I cannot open files in excel with error message "The file name or path contains invalid characters

    I cannot open files in excel with error message "The file name or path contains invalid characters

    Found the solution. The hardrive name was changed to "/" which is not a recognised file path character. So I changed the name to "Mac" then I was able to already open all files in excel and word

  • Opening files in ps from lr.....

    Hi, I wonder if anyone can help......?
    When i open files in ps from lr, the images don't have the exposure changes i've made in lr. Is there anything I can do to stop this as it's very frustrating to have done colour changes etc, then no have them shown in ps.
    Thanks in advance

    Kara_Rue wrote:
    The jpgs contain my photoshop edits so that is why I save them. As far as I know, the lightroom data will be retained but any additional photoshop editing will need to be saved in some format. I'm a professional photographer so I like to have the JPGS easily available for when people order prints.
    I suppose that is just a difference in our personal workflows. Since JPEG files are compressed with lossy compression, many people prefer to keep the TIF or the PSD that Photoshop creates. That file contains all of the Photoshop changes as well as the original Lightroom adjustments. And there is no quality loss in those files. Then JPEG images are created as needed for printing or sharing on the web. And once that purpose has been met, the JPEG files are deleted. But your workflow seems to be different, and one that you are comfortable with. Sorry for harping like I did. I didn't even think about your need to upgrade ACR. Just be aware that if you decide to upgrade it will be necessary to upgrade both programs in order to keep everything in sync.

  • Accessing the Solver AddIn to Excel from LabVIEW

    I would like to be able to set the parameters and run the Solver AddIn in Excel from LabVIEW. I know that from LabVIEW you can install the different AddIn's but is there anyway to access the actual AddIn once it has been installed?

    Hi Karin -
    I believe your answer is ActiveX.
    Briefly, ActiveX allows application a (e.g. LabVIEW) to control application B (e.g. Excel, Word, etc.) programmatically. The kicker is that application B must export that functionality to LabVIEW. We ship an example with LabVIEW that controls Excel via ActiveX, it will give you a head start. We do not provide extended support for ActiveX programming simply because there are literally thousands of applications we could control. Microsoft might be able to shed more light with an Excel ActiveX programmer's reference or some relted document.
    good luck-
    ben schulte
    national instruments

  • Unable to open .xslm file in Excel from Document Library

    When selecting edit on an Excel Macro file opens Excel Web App, with the warning 'Data validation', 'VBA Project', ... click Cancel and open it in Excel, but nothing in SharePoint will allow document to open in Excel.
    Using the ribbon 'Edit Document' result in an error:  We're sorry, we couldn't find a program to this document.
    Ideas?
    P.S. 
    Open Documents in Client Applications by Default is Active.

    Let's eliminate the obvious:
    Does the computer you are accessing the site with have Excel 2010 or 2013 installed?
    Are you accessing the site using one of the
    supported browsers: IE 8-11 (32-bit), Chrome (Latest), Firefox (Latest), Safari (Latest)?
    Can you open other Office files (.xlsx, .docx, etc)?
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • How to freeze and unfreeze panes in window by using Excel from LabVIEW

    Hello
    I am creating an Excel Report file programmatically using LabVIEW. I make the row headers for the sheet and store data using the program.
    The requirement that i need is that when the user opens the Excel sheet, the row heading should remain fixed at top, as the sheet is scrolled down by the user.
    This is possible in Excel, by clicking on Window in the menu bar and then select Freeze panes/Unfreeze panes. The same operation i need, to be done from LabVIEW. Please let me know how this can be done.
    I use LabVIEW 2009
    Thank you.
    Solved!
    Go to Solution.

    Please see this discussion. TCPlomp has an example of how to achieve this.
    Cory K

  • "Unrecognisable Format" when trying to open file in EXCEL for Mac

    Hi guys,
    The other night I left my comp on, with a microsoft excel file open, and the battery went flat. Obviously the computer closed down, but the next day when I tried to open this particular file, all I can get is "This file is in an unrecognisable format", and it won't open.
    Can anyone help? Is there a way of reverting to an earlier saved version of this file? (eg from the day before?)
    Really appreciate any help,
    All the best
    FB

    Ooops you wont do that again
    That file is probably dead and gone
    Do you have a backup that you made previously if not that's something else to put right urgently
    I haven't used Excel for over 10years so you will need to check the help files but at one time I thought it did a save of the open file every so often as AppleWorks does on the Mac. If so find where it is, help files again, it may not be under the name you called it but a reference given by the software.
    Also try a search on the name and or date they may show it up
    chris

  • I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsb

    I tried simply renaming them however it just corrupts the files when I do it like that so I need the applescript to open the files in excel and the save them as .xlsx to test I only need it one folder but if it works I'd like to be able to do it for all documents with .xlsb extentions that are in a huge folder with subfolders that contain a mix of .pdf, .docx, .xlsx and .xlsb. Please Help.

    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

  • Cant open file in photoshop from lightroom

    I installed portraiture yesterday in PS and now for whatever reason I cant open files from lightroom to photoshop?

    Nobody can tell you anything without proper system info or other technical details like exact versions.
    Mylenium

  • Opening Files in SAPGUI from FTP

    Hi! Experts,
    I have a requirement in a project in which I have to read .pdf and .xls files from FTP server and show it in the SAPGUI on a button click for a particular record in ALV. There should also be an option to save the file once opened.
    The file will have a particular naming convention so we can differentiate for which record they belong.
    For e.g. If a I have an ALV grid showing all the visitors. There will be a ticket copy in pdf format placed in the FTP server for each of the visitor planning to travel.
    I need to have an option to show the end user this ticket copy and also have an option the save the same.
    Is this possible?... Please help me with a appropriate solution.
    Regards

    You can't, or at least not easily. Would you like to explain why you want to do that? Remember that the Develop module in Lightroom uses the same processing engine as ACR, so not sure what would be gained by being able to open files into ACR directly from Lightroom.

Maybe you are looking for

  • What are the specs to validate a PDF file? is there a PDF validator available from Adobe?

    I have the following situation: In our company use a software product to schedule our engineers and inform our customers when one of our engineers visits them, to do this the following steps happen: the software product is running on a SQL server 200

  • Hiding Links on a Screen

    Hi Experts,   We are trying to customise the ECM application in MSS. On the compenstion planning screen, there is a link called "Show Additional Information". I would like to hide/remove this link. Any idea on how I can do that? Thanks Preet

  • What does Spotlight omit from its search?

    Disturbingly, Spotlight does not find everything. For example, it does not find the folders in /Library/Preferences. What is it defined to search?

  • Help on dynamically loading of simple classes - ClassLoader

    Hello, does somebody know how to load simple classes with java.lang.ClassLoader in a stateless session bean running on SneakPreview 6.40? i found many solutions for j2ee servers on the net but no one works. i always get a ClassNotFoundException but i

  • BOR method "Returnparameter" on class

    Hi all, on the BOR object method, there is an option for "Resultparameter" so the method returns a value which can be used in the outgoing payments of a workflowtask. How can I achieve this using a method of a class? Regards Robert