Open Excel book and select sheet

I need to be able to open an Excel book, select a sheet, and write to a cell. Using the NI examples I've been able to open the excel book but I can't get it to select a sheet within the book. What is the proper way to do this?

If you are starting with the example Write Table to XL, just change the Workbooks->Add to Workbooks->Open.  Then change the Sheets->Add to Sheets->Item.  The variant that is returned needs to be converted to a Worksheet type just like in the example.  The Index input is a variant and can accept either an integer sheet index or a string sheet name.
If you are expecting the specified sheet to be displayed by the ActiveX Item method, you won't see it.  The reference allows direct read/write of sheet contents without it being visible.  If you need to see it, use the Worksheet->Activate method.
Michael Munroe, ABCDEF
Certified LabVIEW Developer, MCP
Find and fix bad VI Properties with Property Inspector

Similar Messages

  • Open excel,doc and ppt

    how to open excel , doc and ppt files with air application

    Acrobat Version
    not have word………………
       not have word………………
    My office2010 subversion is 14.0.5128.5000(32bit),the office 64bit version i have tried,but have the same problem also.
    Now i try to install Office 2010 sp1,i will tall you the result later,thank a lot.

  • Whenever I open my music and select a song, my iphone immediately scrolls through other songs rapidly and then I get a pop up saying "the requested url cannot be served" and I can never listen to music

    Whenever I open my music and select a song, my iphone immediately scrolls through other songs rapidly and then I get a pop up saying "the requested url cannot be served" and I can never listen to music

    I'm in the same boat...so far no one has helped here

  • I use macbook and lion os. I want to sync gmail contact with address book. For this i goto preference in address book and select "sync with google". I put my gmail details. However, the sync does not happen. Please help.

    i use macbook and lion os 10.7.2.
    I want to sync gmail contact with address book.
    For this i goto preference in address book and select "sync with google".
    I put my gmail details.
    However, the sync does not happen.
    Please help.

    You should have signed in with that address in the first place, but there is a workaround: go to System preferences>Mail, Contacts@ Calendars and add your @me.com address as an account there.

  • I have an apple ipad air and I'm having trouble selecting pictures on Facebook and when I open my music and select a song it plays the song two songs about it in the list

    I have an apple ipad air and I'm having trouble selecting pictures on Facebook and when I open my music and select a song it plays the song two songs about it in the list

    Two songs above it In the list sorry

  • I have installed a trail version of FrameMaker 12 and cannot open the book and chapter files in FrameMaker 8

    Hi
    My colleague and I use FrameMaker 8 but I'm considering whether it would be a good idea to upgrade to FrameMaker 12. So today I installed a trail version of FrameMaker 12.
    Before opening a book file in FM12, I copied it to another folder so I wouldn't mess up anything. Unfortunately, I forgot to copy the chapter files so I opened most of them from FM12. As soon as I found out about it, I copied them to the new folder, but too late.
    Now I'm not able to open the original files from FM8 (and even worse, neither can my colleague). I read somewhere else, that I should save the book file in the .MIF format (I tried both 12 and 7.0) and then open it from FM8. I tried that, but I still cannot open the chapter files.
    I get an error message saying: "Althoug xxx.fm appears to be a FrameMaker document, it can't be opened with this release of the product".
    I didn't make any changes to the chapter files when I looked at them in FM 12.
    What should I do? I case we decide not to upgrade, we will not be able to access this book which is a big problem. I already have some small changes that have to be made.
    Thanks in advance for your help!

    Back saving to MIF should work, but it’s probably faster to just retrieve a backup of the FM8 files & books and restore them over your botched FM12 versions. Then take a copy of that backup and put it on the trial machine to play away without impacting anything else.

  • Open system form and select a row number on matrix by click on button

    Hi experts,
    I have to open the purchase order form and select a specific row number from the matrix by clicking a button on sales order form.
    is it possible ?
    can anyone help me to achieve it?
    Thanks in advance.
    Best regards
    Andrea

    Andrea,
    To Do? Clicking on a Button on Sales Order -> Opens a PO form, and selects the row?
    In the eventhandler of a button click if the PO is not linked to SO by SAP B1 standard functionality
    step 1. call ActivateMenu ("2305") of Sbo_application , this opens the PO form
    step 2. Change the form to Find mode
    step 3. enter po number to the Item UID "8" which is the document number.
    step 4. Send enter key, or Clikc On button UID "1" which finds the PO
    step 5.read the value from SO form, from matrix "38" line where you selected
    step 6. use the code above to locate the line in PO (use # column for position numbers which UID is 0)
    at step 5, i think you should select a line from SO matrix which you would like to open.
    IN sales order, If you used PO chekcbox on logistics tab to create the PO, you can find a direct link between PO and SO (only in docentries are linked not positions) on sales order,  Column UID 158 field name: potrgnum.  If this connection is exists, you have an easy way:
    SO form, when a user clicks on COlumn 158 (po number), you can implement an eventhandler, which
    step 1.read the value from SO form, from matrix "38" line where you selected
    step 2. use the code above to locate the line in PO (use # column for position numbers which UID is 0)
    By processing theses steps, you can build up you solution.
    Regards
    János

  • Very slow opening Address Book and Mail

    Opening Address Book takes about 45 seconds to see the contacts. The application window appears but it's empty for 45 seconds. Just done the 10.6 upgrade and restarted several times but it's no faster. I have 443 records.
    Has anyone else had this problem. Any suggestions to fix?
    Thanks
    Message was edited by: alastairm

    I actually figured out how to do that but it didn't fix the issue. I deleted all the addresses and told it to re-merge the information. The only issue I ran into was it wanted to delete it off my other computer as well which is still on 10.5.8. I'm not going to update it till I get this issue fixed probably. When it popped up on my Mac Pro to delete all my contacts I said no and told it to replace the files back on MobileMe and when it re synced with my MacBookPro it still had the same issue. I even re-installed the address book.

  • My Ipad was upgraded and now when I open a book in Kindle it will not open the book and just takes me back to the opening screen of my IPAD. This happen after a upgrade to some IOS. Help.

    My IPAD was upgraded and now when I open a book in Kindle it will not open and reverts back to opening screen of the IPAD and this occurred after some upgrade with IOS.Help.
    Thanks

    The app may not be iOS6 compatible. Have you tried to reset it? HOld down the sleep and home keys, past when you see the red slider, and unitl you see the silver apple. Let it reboot and see if that helps. If it doesn't, then I'd contact Kindle and see when they're going to update their app or if they even know there's an issue. Unfortunately, the burden is on app developers to be compatible with the operating system, not on the OS to be compatible with millions of apps. So it's up to them.

  • Need to open excel file and read comment field on ipad

    Hi,
    I need to open excel files on my ipad and read the comment fields that our ofiice wrote for me . But this doesn´t work .
    I tried it over several apps (office2HD, etc.) but with no result.
    It´s also necessary to work on our office google drive for me ..
    Can someone help me with this problem???
    BR
    Gunnar

    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = p_file
          i_begin_col             = 1
          i_begin_row             = 4
          i_end_col               = 12
          i_end_row               = 60000
        TABLES
          intern                  = it_excel
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF NOT it_excel[] IS INITIAL.
        SORT it_excel BY row col.
        LOOP AT it_excel.
          CASE it_excel-col.
            WHEN 1.
              it_file-hiden = it_excel-value.
            WHEN 2.
              it_file-budat = it_excel-value.
            WHEN 3.
              it_file-ltext = it_excel-value.
            WHEN 4.
              it_file-subsystem = it_excel-value.
            WHEN 5.
              it_file-work = it_excel-value.
            WHEN 6.
              it_file-role = it_excel-value.
            WHEN 7.
              it_file-sgtxt = it_excel-value.
            WHEN 8.
              it_file-company = it_excel-value.
            WHEN 9.
              it_file-megbtr = it_excel-value.
            WHEN 10.
              it_file-realbtr = it_excel-value.
            WHEN 11.
              it_file-comment = it_excel-value.
          ENDCASE.
          AT END OF row.
            APPEND it_file.
            CLEAR it_file.
          ENDAT.
        ENDLOOP.
      ELSE.
        MESSAGE i000  WITH 'The input file is empty'.
        STOP.
      ENDIF.

  • Create a addin option by opening a screen and select the data you whant to insert.

    Hi all, I'm new to VB and LS and trying to build a school application.
    I created 2 tables, Students and Projects and added a ListDetail screen for both.(See screen shots)
    In the Project screen when I click in the tab Students on the Add button I want to be able to open a screen with all the students in it and then be able to select some students to add to the project.
    Anyone who knows how to do this?
    All tips are appreciated! :-)
    Thanx,
    Marius

    Hello
    The easiest answer is to refer you to examples that are out in the wild
    right now! The best place (apart from here and a few other blogs) to look for information is
    www.LightswitchHelpWebsite.com where you can find a
    student information system walkthrough which will not only teach you about LightSwitch but could also help you out in your current predicament.
    If you found this post helpful, please mark it as helpful. If by some chance I answered the question, please mark the question as answered. That way you will help more people like me :)

  • How to create a button to get File Open popup window and select a file

    Hi,
    I have an applet that contains Browse button. When user clicks on that, a File Open popup window should be displayed to enable user to select the input file. This file path should be given back as parameter.
    How to do this? I have tried using LoadFileData but not able to get the desired result.
    Any pointers would be helpful.
    Thanks,
    Lalitha Dandibotla

    Do you need only the path or also the file back into Siebel?
    If you need both, the have a look at any attachment applet, that will give you a good start.
    Are you using Siebel in High Interactivity (HI) Mode or Standard Interactivity (SI) Mode?
    If you are in SI Mode have a look at the html type
    <input type="file">
    http://www.w3.org/TR/html401/interact/forms.html#h-17.4
    Axel

  • Open Excel read and write problem

    I am trying to deterimine what is causing excel files to open up as "Read Only" using Labview, when I excplicitly state to open as "ReadWrite"
    It seems to work well in the development environment, but not so well on some PCs in the application environment. 
    Attachments:
    lv_excel.jpg ‏122 KB

    Are you using a template file? Is the file marked as "read only"?
    Do you or the application has proper admin rights in the PC where it used?
    Guru
    Regards
    Guru (CLA)

  • Send email with 1 excel file and multiple sheet

    Hi,
    I need to send an email with attachment file in excel format.  The problem is now the requirement requires 2 worksheets/tabs in 1 excel file.
    For example: I need to put details data in sheet1 and summary data in sheet2 and this program should be working also if it is run in background mode.
    Currently, I’m using cl_document_bcs to create document, but could not find a way to create 2 tabs in the excel file.
    Has anyone got an ideas on how it should done?

    Hi,
    Welcome to SDN.
    check these links :
    /people/sap.user72/blog/2006/02/07/downloading-data-into-excel-with-format-options
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2a2dcd9e6c
    Regards
    Appana
    *reward Points for helpful answers

  • Can't set alarm in ical with email. tells me open address book but can't get anything to happen

    using version 4.0 I was able to just a few days ago set an alarm in Ical using my email address, but now i can not.   I open alarm and click on email and it tells me to open address book and select my card and email.  I can open the address book and find my card and email but i don't know where to go from here..  not sure what has happened over the last couple of days for it not to work.  any idea's how to get this working again. 

    Ron,
    Open Address Book, find your card and make sure that you choose Card>Make This My Card.
    If that is unsuccessful, delete and recreate your card, making sure to once again choose "Make This My Card."

Maybe you are looking for