Read excel cell when excel is already open

Hello,
I want to read a specific cell of a sheet with excel already open. Labview has only to read the cell and not have to open excel.
I have several examples that show :
Labvview open excel
select excel file
select workbook
select sheet
select cell
read cell
close workbook
close excel
In my vi i only need the step 3 to 6
Thank for your help
Djamel
Solved!
Go to Solution.

The attached (LabVIEW 2012) vi will return the value in the cell 'A1' of 'Sheet1' of the already open excel workbook 'book1'
Change the values for your specific names of workbook and worksheet and required cell.
The value returned is a variant so need to be converted with 'Variant to Data' according to data type
Ken
Attachments:
Get cell value from already open Excel.vi ‏18 KB

Similar Messages

  • BEx workbook does not open from portal when excel is already opened

    Hi all,
    When I go to the portal and open a BEx workbook from there while excel is already open, then the workbook does not open.
    When I close excel and then open the BEx workbook it all works fine.
    I do not get any error: just nothing happens.
    Any idea how to solve this?
    Versions:
    BI 3.5
    Excel 2003
    ADDITIONAL INFO
    I found this only happens when excel is open with a cell in edit mode. Whenc I then open BEx from the portal I get the error 'please install suitable version'.
    Let my know if you have any advice.
    Message was edited by:
            Arjen de Ruiter
    null

    No solution for this.

  • WORKAROUND: "A document with the name 'vnd.ms-excel' is already open"

    I'm posting this in the hope that it might help someone else (or that someone else might suggest a better solution)...
    I'm using the technique described in the Integrating Oracle Reports in Oracle Forms Services Applications white paper. Basically, this means using RUN_REPORT_OBJECT to generate a report, and then navigating to a URL of the form...
    http://<host>/reports/rwservlet/getjobid<n>?server=<name>...to show it.
    I had the requirement that some reports (with DESFORMAT=DELIMITEDDATA) needed to open in Excel, so for these reports I added the MIMETYPE command to the URL, so that it was of the form:
    http://<host>/reports/rwservlet/getjobid<n>?server=<name>&mimetype=application/vnd.ms-excelThis appeared to work, but only for one report at a time. I could generate one report this way, and when I navigated to its URL, the report would be displayed by Microsoft Excel within a new browser window as expected. However, if I left the browser window open, then generated a second report and navigated to its URL, a new, empty browser window was displayed, but a "Microsoft Excel" message box appeared with the following message:
    A document with the name 'vnd.ms-excel' is already open. You cannot open two documents with the same name, even if the documents are in different folders.
    To open the second document, either close the document that's currently open, or rename one of the documents.
    When I chose OK (the only button), the message box closed, but the new browser window remained empty.
    If Excel was already running to begin with, the message box was obscured behind other windows, and the new browser window remained empty and appeared to never finish loading (because it was waiting for a response from the message box). The message box only appeared if I explicitly navigated to Excel (for example, using the taskbar). When I chose OK, a "File Download" dialog appeared, followed by a message box that reported the following:
    Microsoft Excel for Windows has encountered a problem and needs to close. We are sorry for the inconvenience.
    When I closed this message box, Excel shut down.
    I could not find this documented anywhere, but it appears as if Excel interprets the text after the last "/" in the URL as the file name. In my case, this was the same text every time (specifically "vnd.ms-excel"), which caused problems because Excel does not allow you to open two files with the same name.
    My workaround was simply to add the "JOBNAME=/<n>" command (where <n> is the job ID) to make the text after the last "/" unique (at least in my case). In other words, by using a URL of the form...
    http://<host>/reports/rwservlet/getjobid<n>?server=<name>&mimetype=application/vnd.ms-excel&jobname=/<n>...I was able to avoid the problem. For example, for job ID 123, the URL would be...
    http://<host>/reports/rwservlet/getjobid123?server=<name>&mimetype=application/vnd.ms-excel&jobname=/123...and Excel would interpret the file name as "123".
    Hope this helps.

    Thanks for posting, this solution worked!

  • VI loaded with either Invoke Node or Call by Reference only functions properly when it is already open

    I have modified the Dynamic Loading example so that my case for the first button loads three VIs in succession, rather than one.  The first VI generates a waveform, the second uses this waveform to calibrate the measurement, and the last VI stops the waveform generation.  I discovered that the middle Calibrate.vi would only function properly if the Calibrate.vi was already open.  I attempted the VI loading of the Calibrate.vi with both the Call by Reference (identical to the example) and the Invoke Node method.  In both cases, the first and last VIs (Multitone Gen.vi and Stop Gen.vi) functioned properly, but the Calibrate.vi only worked correctly when it was already open.
    I have tried resetting the NI USB DAQ device and that hasn't helped.
    My search for answers has come up empty and I am hoping that someone in the forum might be of assistance.  I have attached a snapshot of each version of my code, both built off of the Dynamic Loading example.
    Thanks!!
    Attachments:
    Call by Reference.png ‏19 KB
    Invoked Node.png ‏21 KB

    Hello Anjelica,
    I do not receive any error messages when the middle VI is loaded and run.
    The Calibrate.vi acquires three separate corrections (Open, Short, Load), averaging results from a  number (N) of measurements, determined by the user.  When the VI is loaded and run correctly, information describing the multitone waveform generated by the first VI is first acquired.  Then the user selects each correction individually.  The corrections are made and averaged after N corrections, taking approximately 10 seconds per N.
    When the Calibrate.vi is malfunctioning, the multitone waveform information is not loaded and when a correction is selected, the indicator displaying the number of measurements performed (n of N where n = 0 to N) instantaneously displays N of N.  The correction measurements are not performed.  I have even tried using the Front Panelpen method and then running the middle VI and this results in the same malfunction unless the Calibrate.vi is already open.
    Though it is an obvious workaround, I can live with opening the Calibrate.vi via the Open VI Reference method outside of the while loop. This will be my solution for now.
    Thank you for your response.
    Attachments:
    Open Outside Loop.png ‏23 KB

  • Open a Numbers Document when it is already open?!?!?

    Hello,
    i use Numbers (latest Version) in a little Team.
    My Problem is: One User open the Document "testname.numbers". This File is located on a server. The HD has no permissions.
    OK, the User has the file open. And now comes a second user on a second computer and open the same file. BUT he became no information that the file is already open. What the f*?
    User A type a information in the numbers-document and save the file and close it. User B makes the same. The information of the User (A) which saved earlyer is now lost.
    In Microsoft Office, the User B becomes a warning and can open the document in "read only".
    Has anyone an idea, how i can have this feature in Numbers?
    Please please, sorry for my bad english.
    Thank you.
    Thomas Otto, Germany

    KOENIG Yvan wrote:
    So, my opinion _is not that the Search tool is inefficient_, it is that _many users use it inefficiently_ which is not the same thing.
    The thing is, I tried entering your suggested search ("network AND users") into the "Search Discussions" box on this page. I got 301 results, ranging from topics on network user accounts in the Mac OS X Server v10.5 Leopard forums to some in which the only time the word "network" was used in the post was in the phrase "not on a network" or something like it. Last night, it took around 25 seconds for the first results to appear. This morning, that took about 5 seconds.
    I then used the advanced search option to limit the search to the Numbers forum. This in itself was not quick or easy because the new advanced search option to pick a forum is implemented with a popup menu of every single Discussions forum (probably several hundred of them) & the list is organized into nested categories & sub-categories. So it isn't a simple matter of just looking for "Numbers" in the "N" part of a single level alphabetical list, but finding it in the iWork '08 subcategory of the iWork category, among the 100 or so other "i" categories. That is a challenge because the list is very long, has many levels of indention, & the scroll rate is very touchy. The result is can take several seconds to find & select Numbers, & very careful positioning of the pointer to keep the list from scrolling by at an unreadable rate. In a browser window that is small & displays only a few tens of list items at a time, it borders on an impossible task.
    But with some difficulty I did manage to limit the search to the Numbers forum & clicked the "Search" button. 30 seconds later (!!) I finally saw 8 results, ranked by relevance. The highest ranked post (47%) contained the phrase, "I am a single user, the file is not stored on a network." Next came your post in this thread with the phrase, "Try with "network AND users" (24% relevance). Next was your post in the topic, "Features we need to move from Excel to Numbers" (22% relevance). It does contain the phrase, "As far as I know, if a doc is stored on a network and two users try to work with it at the same time, the document will be destroyed." That is somewhat relevant (here, the document is not destroyed) & is hardly a definitive answer, instead expressing one user's experience. The next most relevant post takes us to a topic in which you ask users to run a script to test a workaround that may or may not avoid what actually appears to be a bug in the application.
    The end result is that the search leaves me wondering if it even found the most relevant posts & takes a lot of effort just to perform. In part this is because of poor page design, in part because the search algorithm is simplistic, & in part because by their nature user posts rarely are definitive statements of fact.

  • How can I insert a file in email When email is already open

    When my email is open I would like to insert a file or attachment

    You can insert a photo but inserting a different type of document requires you have Acess to the app that contains the document.
    If you are already preparing an email select everything in it and choose Copy. Then close the email and open the app that contains the document you want to share. Select the document, select Share and choose Mail. Once the Mail app come up with the document attached paste the stuff you copied from your draft.

  • How to open a Template when Pages is already open

    I have just copied and pasted some text into a blank pages document.  I want to convert this doc. to a letter head that I made a template for.
    I would like to open the template, then copy/paste the first doc info into the template doc.
    I haven't been able to figure out how to open a template when a document is already open.

    Sorry,  P5.2, Mavericks.
    I did set the preferences to New Documents> Use Template: Blank, to stop endlessly having to choose a template when I don't need one.
    When I pull down File, there is no New from Template Chooser.  File>New just opens another blank file.
    To check, I went back and enabled "Show Template Chooser".  Now it demands I choose a template whether I want to or not.
    OK, it seems Apple is forcing you into either/or.  I want both/and.  I don't want to be forced to choose a template when 99% of the time I don't want anything but a blank file.  It is a nuisance.  But the occasional time I am composing something and decide it would be better off as a universal doc with letter head, I am stuck and cannot choose open a template so I can stick the material in it.
    The options are lousy.  Close/save the doc, reset the preferences to templates, shut down Pages, restart pages, select template, open old doc, copy/past old text into new template.  Or, while the original doc is open the first time, I could go find a stored doc with the right letter head template, open it, copy/paste the previous text into the letter head doc (and delete everything else).
    Neither of these options is worth a wooden nickel.  Apple needs to think this one through again.  Like have multiiple buttons with View on it, doing different things.  At least they got rid of using the paragraph symbol for two or three different functions.

  • Adobe Reader X freezes when I try to open recent files

    When I try to open recent files, Adobe Reader X will freeze up and will stay that way until I restart the computer. Even logging off won't work. I recently left it alone for around 5-10 minutes and Windows finally did end up stopping the process, but this is not normal. Any ideas for a fix?

    Nope. That didn't do it. It won't even let me end the process AcroRd32.exe. I confirmed that after around 10 minutes, it finally closed on it's own. I just also confirmed that it's a problem with accessing files on my network, not local files. The odd thing is that I can use the Open tool, go the folder and open that file fine, but when I try to open the same file under the recent files, it freezes up. This may have to do with the fact that this is a mapped network drive. Any fix would be appreciated. Thanks.

  • Cant open same excel file when it is already open by another user (cant open read only)

    We have been having an issue for a while now where if a user has an network saved
    excel document open, another user cannot open it at all. We get the error
    "Sorry we couldn't find your file. Is it possible it was moved, renamed or deleted?"
    and/or simple "Could not Open _____" errors when this happens. We should certainly be able to open a read only copy at the least but office doesn't even give an option to do so. We are using office '07 Pro Plus. Thanks.

    We have been having an issue for a while now where if a user has an network saved
    excel document open, another user cannot open it at all. We get the error
    "Sorry we couldn't find your file. Is it possible it was moved, renamed or deleted?"
    and/or simple "Could not Open _____" errors when this happens. We should certainly be able to open a read only copy at the least but office doesn't even give an option to do so. We are using office '07 Pro Plus. Thanks.
    I'm facing the same issue.  Started only when my machine was upgraded from XP Pro to Win 7 Ent. Office 2010 is the version.  Hoping someone as a answer.
    Thanks.

  • No more data to read from socket when I try to open the control center

    Hi everybody,
    I'm using on production environment the following OWB:
    Client: 10.2.0.3.33
    Repository: 10.2.0.3.0
    The control center worked very fine since a week ago, and now suddently when I try to login from the Design Center I get the error "No more data to read from socket"
    I saw on the forum many thread relating the problem "No more data to read from socket", and my case is very close to the thread
    Warehouse Builder error no more data to read from socket.
    even if I'm using a different version of OWB...
    Now, I found on metalink the Doc ID: 549303.1 "*Opening of The Control Center Manager Fails with: No More Data To Read From Socket*" , where there are 2 solutions:
    1)This bug has been fixed in the Oracle 10.2.0.4 patchset and Oracle 11g database.
    2) To workaround the issue change the value of the parameter "optimizer_mode" from ALL_ROWS into FIRST_ROWS.
    In the thread above they found the solution setting the optimizer_mode=first_rows
    ....but I have two questions:
    1) I have another envinronment (development) completely equal to the production env. (same OWB versions), where the Control Center works perfectly and the optimizer_mode=ALL_ROWS
    Why in the development env., even if the optimizer_mode=ALL_ROWS, the control center works perfectly ???
    2) How it's possible that suddently the control center crashed with this error ? I didn't change nothing (at the Db level and at the OWB level)
    My last chance is to apply the Oracle 10.2.0.4 patchset, but I can't change the db version (actually I have 10.2.0.3.0)
    I will appreciate any suggestion
    Thanks in advance
    Alex

    This problem still exists in OWB 11g R2. I hit this same issue yesterday. Not sure why its claimed to be resolved

  • Clicking on Firefox's shortcut to specific profile when it's already open doesn't work. What am I missing?

    Well, that's a hard problem to describe in one sentence.
    I'm currently using windows. I have 2 Firefox profiles, and each of them have desktop shortcuts to:
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -no-remote -P "Developer"
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -no-remote -P "Lazy"
    They work just fine. The thing is: if the profile is already active and I click the shortcut, I get a "Firefox already running but not responding" error (Firefox just fails to open. The current opened window still works). The behavior I want is either maximize/focus the corresponding window, or open a new window with the same profile. Is it possible to achieve this? What am I missing?
    I don't know if I'm being clear. In other words:
    - Desktop shortcut to specific profile works fine
    - While profile is open, double click the same desktop shortcut
    - Receive a "Firefox already running" error popup
    - Press ok, current profile still working but new window is not opened as expected

    ''cor-el [[#answer-676907|said]]''
    <blockquote>
    You can't open a link if you use the -no-remote command line switch.
    You will have to start one profile without the -no-remote switch.
    Then you can open external links in that profile instance (but not in the other).
    </blockquote>
    Huh. If I didn't know better I would bet that I had tried this and hadn't worked. Thanks for the answer.

  • Mailto link opens Outlook when it is already open

    When I click on the mailto link in the CHM file, it tries to open Outlook Express, even though I already have Outlook open. Is there something I can do to resolve this?  Thanks for your time.

    Hi there
    Seems I encountered this same situation a few years back. (scratches head and thinks)
    I think I was able to overcome this as follows:
    Use a HTML Help Shortcut control. Insert the mailto command in the shortcut.
    Perhaps you don't wish to see a button the user clicks. In that case you may script the control. Just make it Hidden when you insert it.
    Then you use the normal Hyperlink dialog to "click" the control.
    Hopefully this helps... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • When reading the Rich Text present in Excel column using open XML its taking it as plain text

    Hello All,
    When i am reading excel columns using open Xml in C# everything is working fine except the column that
    contain Rich Text (ex: bold, italic,color,size). Its reading the Rich Text content as plain text. As we know for Rich Text in open XML we get the text as Runs (C#
    object) which contains the text as value and rpr as run properties. I have also written the code to convert Runs to html. But the issue is that for some Rich Text format its reading it as Runs but most of the Rich Text its reading it as plain text.
    The issue i am getting is, for some rich text its creating RUN and for some of the rich text its not creatingRUN.
    Let me give the example for more understanding:
    Suppose i have two cells in excel which contains the below text.
    1. Rich Text
    1
    2. RichText
    2
    Now when i read these cells using the below code
    var stringTable =spreadsheetDocument.WorkbookPart.GetPartsOfType<SharedStringTablePart>().FirstOrDefault();
    if (stringTable.SharedStringTable.ElementAt(index1).ChildElements.GetItem(0).GetType().Name == "Run")
    Custom code to convert Rich text to HTML...
    else
    Read the plain text...
    Though both the cell contains rich text, one is going in RUN block and one is going in Plain text bloc.
    Also, one thing that i have noticed is when i use standard color for text its consider it as RUNS and when i use color apart from the standard color it does not consider it as RUNS. Same behavior occurs for different combination of text viz. bold, italic, underline
    etc

    Hi Ejaz,
    This forum is for software developers who are using the Open Specification documentation to assist them in developing systems, services, and applications that are interoperable with Microsoft products. The Open Specifications can be found at:
    http://msdn.microsoft.com/en-us/library/cc203350(PROT.10).aspx. Since your post does not appear to be related to the Open Specification documentation set, we would appreciate it if
    you could try to post your question in a more relevant forum. Thank you.
    Open XML Format SDK
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=oxmlsdk&filter=alltypes&sort=lastpostdesc
    Josh Curry (jcurry) | Escalation Engineer | Open Specifications Support Team

  • Excel 2010 SP2 opens files slowly after installing SP2

    After installing SP2 Excel is opening files very slowly. Files can be on network share or locally, no matter. If Excel is already open, then the file opens fast as it has opened before. OS is Windows 7 64-bit, and Office Professional Plus is 32-bit. Ecxel
    itself opens fast, but is slow when I double click file. Slow is about 12 seconds and fast is about 1 second with a 31 KB file from network. Network itself seems to be OK, anf Word files open fast.

    From your description, I understand that you open EXCEL 2010 SP2 32-bit slowly in Windows 7 64bit.
    Try to start Excel in safe mode. Then, open the Excel file.
    Start the Excel program in safe mode
    1.       Click Start, point to All Programs, and then point to Microsoft Office.
    2.        Press and hold the CTRL key, and then click the Microsoft Excel.
    If the problem does not occur in the safe mode, this issue might be related to some third-party add-ins in the Excel program, we can try to disable them.
    Normally, you could do the following to disable the conflict add-ins in your Excel program:
    Disable add-ins
    Click File menu, click Options >  Add-in, click Go button in the Manage: Com-in Add.
    Check if there are any add-ins, clear the checkbox to disable them.
    Close the Office program and restart it.
    Add one check back each time to the list of Add-In, restart the Office program, and repeat the above procedure. Once the issue reappears again, we can determine which add-in causes this problem and then disable it.
    Please take your time to try the suggestions and let me know the results at your earliest convenience.  If anything is unclear or if there is anything I can do for you, please feel free to let me know.
    Is the performance also slow when you trying to open?
    At this time, we can also try to test this issue in the clean boot mode.
    Test in Clean boot Mode
    ===============
    Let’s disable all startup items and third party services when booting. This method will help us determine if this issue is caused by a loading program or service. Please perform the following steps:
    1.       Click the Start Button type "msconfig" (without quotation marks) in the Start Search box, and then press Enter.
               Note: If prompted, please click Continue on the User Account Control (UAC) window.
    2.        Click the "Services" tab, check the "Hide All Microsoft Services" box and click "Disable All" (if it is not gray).
    3.       Click the "Startup" tab, click "Disable All" and click "OK".
    Then, restart computer. When the "System Configuration Utility" window appears, please check the "Don't show this message or launch the System Configuration Utility when Windows starts" box and click OK.
    Note: Temporarily disabling the Startup Group only prevents the startup programs from loading at startup. This should not affect the system or other programs. We may still manually run these programs later.

  • Intermittent 'Unable to read file' error when exporting/opening .html to .xls

    Hi, hope someone can help.
    I have an issue where I export a report from the Salesform platform to Excel. The file that is being exported is in html format and the report does not include any Pivot tables.
    The 'Unable to read file' error occurs intermittently, when Excel is already open and you export/open it from Salesforce...
    Have tried using Excel in safe mode with all the add-ins disabled and still no joy. The
    Do not save encrypted paged to disk option has been un-ticked the in Internet Options -> advanced.
    The issue happens in IE and other browsers, after raising the issue with Salesforce support they advised to raise the issue with MS instead, so here I am to see if anyone can help!
    Any help would be much appreciated

    Tools>Internet Options>Advanced tab, uncheck "Do not save encrypted files to disk"
    check your GPO settings to see if you have configured this to be unchecked.
    Thx.
    Rob^_^

Maybe you are looking for

  • Problems with external counter direction

    I have a DAQPad-6015 attached to a SC-2345, in slot 19 of the SC-2345 I have a SCC-CTR01.  Within MAX I have created a task to retrieve the counter information but because there is no option of a SCC-CTR01 I have configured it as a SCC-FT01.  Attache

  • Field selection in th Project Builder

    Hi PS gurus I want to make the Recipient field and the vendor field in the Purch. data tab of a Component mandatory How do i do that Can somebody help Amit Fernandes

  • Freezes at night when not in use roughly twice a month

    Hi, Lately, roughly twice a month, my Powerbook will freeze at some point overnight when I am not using it. (Some times that I have noticed that it has frozen: 7:17 AM, 6:21 AM, 12:58 AM, 1:31 AM, 3:27 AM) System maintanance is not done at these time

  • Recursive ActiveX register event callback VI

    Hi! I am trying to control a motor in LV2013 using the ActiveX concept. When I use a "register event callback VI" function, can I call the same VI that calls a VI (with the "stop rule" controlled be the user data terminal, of course, inside)? By defa

  • Oracle ADF 11g

    Wondering if there is a Oracle ADF 11g Video site ? Site where all ADF 11g sample example clips are consolidated ? I did like ADF videos here http://blogs.oracle.com/shay/ wanted to know more such video sites exclusive ADF 11g thx pp