Propriete text activeX excel

Bonjour, j'utilise les fonctions activeX d'excel sous LABVIEW et je voudrai savoir comment lire une plage de donnée avec la propriété TEXT. Avec la proriété value, cela ne pose pas de soucis, il suffit de déclarer un tableau 2D sur le variant mais cela ne fonctionne pas pour la fonction text. Merci de votre aide.
J'utiise une version 6.1

Bonjour,
Je ne peux que te conseiller d'aller voir dans l'aide d'Excel ou sur le site de Microsoft afin d'obtenir plus d'aide sur cette propriété. Excel possède de nombreuses propriétés et méthodes et nous ne les connaissons pas toutes chez National Instruments, en revanche si tu as des questions sur l'utilisation des fonction ActiveX de LabVIEW, pas de soucis, on pourra t'aider.
Cordialement,
ClémentG

Similar Messages

  • Using vlookup btwn worksheets when using ActiveX Excel

    I am having problems using the vlookup function in Excel.  It works fine if I have the lookup table on the same worksheet that's already open in LabVIEW.  I first open an excel file that I use as a template.  I copy the header and formula information from that file into an activeX container containing an Excel worksheet.  I then allow the analyst to enter data into the ActiveX Excel spreadsheet.  Meanwhile, I create a log template by creating a text file with headers.  When the analyst is done entering data on the front panel, they click on the Update/Print Label button.  This appends their data (a range of cells) to the text file (which is then formatted and saved using report generation tools) and it's printed to a label.  The problem is on the front panel ActiveX Excel sheet.  The original excel sheet used as a template has many formulas, all of which work well in Excel, as well as in the LabVIEW app, with one notable exception.  One of the cells contains a formula that uses a vlookup function.    The problem is when I place that lookup table on a different worksheet.  It works great if I place the lookup table on the same sheet as the template, but when I try to reference a different sheet, I get an error.  I'm assuming that I just need to add code to open the second Excel spreadsheet (or better yet - a separate workBOOK).  I was confused at first, because the vlookup function worked fine in Excel, but not in LabVIEW.  Then I realized that Excel already had all the worksheets in the workbook open, but LabVIEW does not.  Am I correct?  If I want to use a vlookup to look on another worksheet or another workbook, do I just have to open that second workbook/sheet in LabVIEW?

    Hi Dan,
    You are right.  LabVIEW does not have the other worksheets open.  I think that you are on the right track.  I recommend opening another worksheet and testing it out.  LabVIEW should stop giving you an error when you do.
    Nick Keel
    Applications Engineering
    National Instruments 
    Nick Keel
    Product Manager - NI VeriStand and Model Interface Toolkit
    National Instruments

  • How to copy text from Excel to a text field in the form?

    Hi All,
    I want to copy a text from Excel or Word file and paste it in a text field in the form, How?
    I tried to use ctrl+c for copy and ctrl+v for paste but it doesn't work!

    hi, i've seen this problem before but can't remember what the solution was...
    but just by searching on this forum resulted in this link
    Re: Copy and Paste
    hope it helps

  • How to store the data coming from network analyser into a text or excel file

    Hii everyone
    I'm using Agilent 8719ET network analyser and wish to store the data coming from netowrk analyser into a text file/ excel file.
    Presently I'm able to get the data on Labview graph using GPIB . Can anyone suggest how to go ahead after collect data sub vi. How can the data be stored into a file apart from showing on the graph?
    Attached is the vi for kind consideration...
    Looking for help
    Regards
    Rohit
    Attachments:
    Agilent 87XX Series Exceed Max Meas.vi ‏43 KB

    First let me say that your code really looks pretty good. The data handling could be made more efficient by calculating the number of datapoints that are going to be in the completed dataset and preallocating the entire array -- but depending upon your answer to my questions, the logic in the lower shift register may be going away - so we won't worry about that right now.
    The thing I need to know before addressing the data storage question is: Each time you call "Collect and Display Data.vi", how many element are in the array? Are you reading single data points, or a group of data? (BTW: if the answer to that question is obvious based on the way the other VIs are setup, I don't have the drivers so I can't tell what the setup values are.) Second, how fast does the loop iterate? Are we talking msec per loop?, seconds? fortnights?
    The issues here are two-fold: how much data? and how fast is it coming? The answer to these will tell you how to save the data.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to find and replace text in Excel with Automator

    I am new to Automator. And I would like some help how I can create a service that will allow me to find and replace certain text in Excel. I noticed that there is an action to do this for Word documents, but not for Excel document.
    Any suggestions how I can do this?
    Thanks so much for your help.

    Easiest way to do it is the following:
    - Open the PDF file in Acrobat.
    - Go to Tools - Forms - More Form Options - Export Data.
    - Save the form data as an XML file somewhere on your system.
    - Open XML the file in a plain-text editor (I recommend Notepad++).
    - Let's say you want to replace all the years in the dates from "2013" to "2014". Do a global Search&Replace of "2013-" to "2014-" (I added the dash just to make sure that only date fields are edited).
    - Save the XML file (maybe under a new name).
    - Go back to the PDF file, and now go to Tools - Forms - More Form Options - Import Data.
    - Select the edited XML file and import it.
    - Done!

  • Reading long text from excel file to an internal table

    Hi
    Can any body tell me how to read long text from excel file to an internal table.
    When i am using this FM KCD_EXCEL_OLE_TO_INT_CONVERT then it is reading only 32 characters from each cell.
    But in my excel sheet in one of the cell has very long text which i need to upload into a internal table.
    may i know which FM or what logic i need to use for this problem.
    Regards

    Hi,
    Here is an example program.  It will upload an Excel file with two columns.  You could also assign the Excel structure dynamically, but I wanted to keep the example simple.  The main point is that the internal table (it_excel in this example) must match the Excel structure that you want to convert.
    Remember, this is just an example to help you figure out how to properly use the technique.  It will certainly need to be modified to fit your requirements, and as always there may be a better way to get the Excel converted... this is just one possibility that has worked for me in the past.
    *& Report  zexcel_upload_test                            *
    REPORT  zexcel_upload_test.
    TYPE-POOLS: truxs.
    TYPES: BEGIN OF ty_excel,
             col_a(10) TYPE n,
             col_b(35) TYPE c,
           END OF ty_excel.
    DATA: l_data_tab         TYPE TABLE OF string,
          l_text_data        TYPE truxs_t_text_data,
          l_gui_filename     TYPE string,
          it_excel           TYPE TABLE OF ty_excel.
    FIELD-SYMBOLS: <wa_excel>  TYPE ty_excel.
    PARAMETERS: p_file TYPE rlgrap-filename.
    * Pass the file name in the correct format
    l_gui_filename = p_file.
    * Upload data from PC
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename                = l_gui_filename
        filetype                = 'ASC'
        has_field_separator     = 'X'
      CHANGING
        data_tab                = l_data_tab
      EXCEPTIONS
        file_open_error         = 1
        file_read_error         = 2
        no_batch                = 3
        gui_refuse_filetransfer = 4
        invalid_type            = 5
        no_authority            = 6
        unknown_error           = 7
        bad_data_format         = 8
        header_not_allowed      = 9
        separator_not_allowed   = 10
        header_too_long         = 11
        unknown_dp_error        = 12
        access_denied           = 13
        dp_out_of_memory        = 14
        disk_full               = 15
        dp_timeout              = 16
        OTHERS                  = 17.
    IF sy-subrc <> 0.
    *   MESSAGE ...
      EXIT.
    ENDIF.
    * Convert from Excel into the appropriate itab
    l_text_data[] = l_data_tab[].
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
      EXPORTING
        i_field_seperator    = 'X'
        i_tab_raw_data       = l_text_data
        i_filename           = p_file
      TABLES
        i_tab_converted_data = it_excel
      EXCEPTIONS
        conversion_failed    = 1
        OTHERS               = 2.
    IF sy-subrc <> 0.
    *   MESSAGE ...
      EXIT.
    ENDIF.
    LOOP AT it_excel ASSIGNING <wa_excel>.
    *  Do something here...
    ENDLOOP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM filename_get CHANGING p_file.
    *       FORM filename_get                                             *
    FORM filename_get CHANGING p_in_file TYPE rlgrap-filename.
      DATA: l_in_file  TYPE string,
            l_filetab  TYPE filetable,
            wa_filetab TYPE LINE OF filetable,
            l_rc       TYPE i,
            l_action   TYPE i,
            l_init_dir TYPE string.
    * Set the initial directory to whatever you want it to be
      l_init_dir = 'C:\'.
    * Call the file open dialog without multiselect
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = 'Load file'
          default_extension       = '.XLS'
          default_filename        = l_in_file
          initial_directory       = l_init_dir
          multiselection          = 'X'
        CHANGING
          file_table              = l_filetab
          rc                      = l_rc
          user_action             = l_action
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          OTHERS                  = 4.
      IF sy-subrc <> 0.
        REFRESH l_filetab.
      ENDIF.
    * Read the selected filename
      READ TABLE l_filetab INTO wa_filetab INDEX 1.
      IF sy-subrc = 0.
        p_in_file = wa_filetab-filename.
      ENDIF.
    ENDFORM.                    " filename_get
    Regards,
    Jamie

  • Make Number stored as text - in excel using ABAP

    Hello all,
    How can I make a value to be stored as text in excels, without adding apostrophe in front of the value using ABAP.
    Im using ECC6.0 system. In erlier version 4.6C, values are displaying as numbers.
    We are calling methods in RSAQEXCE dynamically in our program to get the excel.
    Can any one help me in this regard.
    Thanks in advance.
    Best Regards,
    Sasidhar Reddy Matli.

    Hi Sasidar,
    In Excel right click the column select format cells and then select  the format as text which is general by default.
    Regards,
    Anil.

  • Build Array and Output Values to Text or Excel File

    I know this is a simple question but I need some help. I'm reading a DC voltage in LabVIEW a while loop. I want to store all the read values into an array and export that array as an text or Excel file. I had a VI that I build before for this but I cannot seem to find it and I can't remember how I did it before. Any help is appreciated. I think I can do the exporting part but I do help with building the array (storing all the data values).

    I run into a problem while using the "Write to Text File Function". Initially I took about 60 measurements and wrote to a text file. That works but I increased the amount of measurements to be taken to 600 and when I did that the output in the text file are all Chinese letters (or that's what it seems like). Is this because I'm writing too much data?
    When I use the "Write To Spreadsheet File VI" to write the measurments it works fine for the 600 measurements. The problem with this is I cannot insert any text. Using the "Write to Text File Function" I inserted some text before the measurements and "end of lines", to format the data. Attached is a screenshot of my VI.
    Attachments:
    measurements.PNG ‏45 KB

  • Copying Hebrew text from Excel

    I noticed when I copy a Hebrew text from excel to a notepad, Hebrew words on the notepad are in reverse order.
    If on excel the word is abc. it appears on the notepad as cba.
    Is there a way to force the copy command to keep the original order?
    Thanks,
    Zalek

    Hi,
    Try pasting it to a Word document first, choose the option "Keep Text Only", test if this reverse the order.
    If the order is correct, then copy and paste it to the Notepad.
    Regards,
    Melon Chen
    TechNet Community Support

  • Hello, for a multilingual catalog project I would have to know how and with what tool I can place text from Excel or a database in text frames / tables. The basic idea is to provide the text box with an ID (eg text_eng_art_nr_987654 ) and above to ma

    Hello, for a multilingual catalog project I would have to know how and with what tool I can place text from Excel or a database in text frames / tables. The basic idea is to provide the text box with an ID (eg << text_eng_art_nr_987654>>) and above to make the connection. Does anyone have a tip. Thanks in advance !!!
    Bernd

    Data merge is really useful in many circumstances, but my first question would be about the size of the project. A really large catalog might be better handled by processing an IDML in some kind of translation memory tool.
    If all of your multilingual content is already in Excel, then it's probably best handled with a Data Merge. Note that you can't save Unicode CSV out of Excel for the merge, so for many languages you'll need to save "Unicode Text" out of Excel and tweak your import settings when you select a Data Source for encoding (Unicode) and delimiter (tab instead of comma).

  • How to find and replace certain text in Excel.

    I am new to Automator. And I would like some help how I can create a service that will allow me to find and replace certain text in Excel. I noticed that there is an action to do this for Word documents, but not for Excel documents.
    Any suggestions how I can do this?
    Thanks so much for your help.

    Marga,
    I think the best place to ask about Office for Mac would be in the MS forums.
    Jerry

  • Stockage des données d'un capteur dans un fichier texte ou excel

    Bonjour, après avoir réalisé un programme permettant de lire
    les données d’un capteur, et avoir réussi à faire varier les gains et offset du
    capteur via labview, je souhaiterais stocker les données lues par ce capteur
    dans un fichier texte ou excel.
    Dans mon programme, j'ai découpé l'information de la chaîne de caractère émise par le capteur, pour en garder seulement deux valeurs numériques ( la température TA et la température TC )
    Après de nombreuses tentatives en suivant les exemples de
    labview sur l’enregistrement de données dans un fichier, je n’ai toujours pas
    réussi à trouver le moyen d’obtenir ceci.
    Voilà pourquoi j’aimerai avoir votre avis sur la manière de
    réaliser cette opération.
    Cahier des charges :
    - le capteur renvoie deux
    températures (TA et TC), grâce à labview j’ai réussi a isoler la partie de
    l’information qui m’intéresse, cette dernière est au format numérique.
    Il faut que ces données soit stockées dans un
    fichier texte ou excel de manière à avoir deux colonnes : une pour les
    températures Ta et une autre pour les températures TC.
    Je vous joins mon programme en pièce jointe.
    Merci par avance.
    Cordialement.
    Pièces jointes :
    port serie ecriture(modif18) - Test structure évênement.vi ‏109 KB

    Dans ce cas là je pense que ta meilleure option est la structure producteur/consomateur.
    Le principe est simple: tu as deux boucles, la première qui fait l'acquisition et la deuxième l'enregistrement. Le transfert des données de l'une à l'autre est commandé par des évênements.
    Pour voir la structure, tu crées un nouveau vi: New../From Template/Frameworks/Design Pattern/Producer/Consumer Design Pattern (events)
    Après il y a un peu de boulot pour l'adapter à ton projet, mais rien de très compliqué je pense.
    Cordialement,
    Simon D.
    CLA | Certified LabVIEW Architect
    CTA | Certified TestStand Architect

  • Text to Excel to SAP

    Hi All,
    I am working on getting the info from ‘text to Excel to SAP’, I recorded the BDC for sales order creation and need to upload the info. Please help me get the info from text to Excel format, so that I can upload the info.
    Thanks
    Veni.

    Hi All,
    It is in this text format. I want to load this file to SAP.
    Please help me.
    Thanks
    Veni.
    [code]
    SHIP TO:
    Electronics Inc. - Palo Alto     
    Store #3 - Palo Alto                   
    340 Portage Ave                        
    Palo Alto     CA 99999    
    VENDOR:    57224                        Our PO Number: 8888640
    VENDOR OF AMERICA, INC                    Date:                   07/31/06
    ATTN: ACCOUNTS RECEIVABLE               Ship Date: 07/31/06 Cancel Date: 08/11/06
    550 FRANCIS ST, SUITE 555              Ship Via:                              
    SAN FRANCISCO        CA  94103-4908    
    Contact: NINA                          Order Clerk: JOHN, WOODS          
    Vendor Phone: 415-408-4800              Our Resale # SYCHA 26 - 762263
    LN Quan  PLU   Vendor Order #         Desc.                 Price       Extended
    1  8    4462266  66002                PSP VIRTUA TENNIS     $16.32    $130.56
    2  8    4868770  68004                XB360 CHROMEHOUNDS    $48.96    $391.68
    3  6    4465726  60029                GBA GUNSTAR SUPER HE  $16.32    $97.92
    4  8    4362655  64055                XB WORMS FORT UNDER   $15.30    $122.40
    [/code]

  • ActiveX Excel Prevent Open File While Writting

    I'm having some of the same problems with Excel and ActiveX found here:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=254019&view=by_date_ascending&page=1
    The last post from the above link gives an acceptable workaround (not ideal, but hey, what can you do?) to preventing the user from closing Excel when files are being written to with ActiveX through LabVIEW (since a user can open an Excel file while LV is writting to Excel files with ActiveX and all the files will share the same Excel application, instead of Excel opening a seperate application like one would hope).
    My question for this post: In the previous post Ben had a problem with the user opening a different Excel file than those being written to. My VI opens an exisiting Excel file (test.xls) and writes to it. If the user opens test.xls while LV is still writting test.xls, it will throw an error. Note that the error is not thrown if test.xls is open before the VI starts writting to it, only if the user opens it while its being written to by LV.
    Any ideas on how to lock the file so the user can't open it while it is being used by LV?
    Michael

    Thanks thols. Thats a great solution, I actually had tried it but gave it up since the user could close out of "their" Excel (closing the reference), then open a new spreadsheet which would open in "my" Excel (if done while my subVI was still writing to Excel). At the time, this was a possible scenario for my program, and since I was writing so slowly had happened. I just sped up the writing of the Excel file (I had all the data to write, but was writing with "Set Cell Value.vi", which wrote one cell at a time; instead I wrote whole ranges of data). If Excel was already open, I would set interactive to false and have my spreadsheet minimized while writing to it. If Excel wasn't open, I would just make it invisible. Since I cut the time down to about a second, this worked for my application.
    Michael

  • Activex Excel Automation: the Missing Handle

    Once upon a time there was a piece of legacy code, working well.  It would open Excel workbooks, add data, and make it look nice.
    Then one fateful day, the old code creaked and groaned, and it doesn't work the same way it used to when it was fresher and younger.
    Now when the code runs, an excel 2007 reference is not closed somewhere, causing the excel.exe process to remain open after the code has finished execution.
    With great care, I have extracted all the extraneous code from the process, so that only a few base functions remain; yet the problem persists!  For your convenience, I have flattened it all onto the same vi pane (the old code is rather modular)!  Apologies for any extraneous wire bends =)
    My questions are threefold:
    What changed that caused this code to stop working? 
    Is there a better way to find and close activex references than staring intently at the wires?
    Is there, dear reader, perhaps a blatent error in the old code?
    Attachments:
    Fun with references.png ‏59 KB

    I"ve moved all the CR's to the end of the VI.  The problem persists.  Look at the examples? Are you toying with me?
    Attachments:
    test.vi ‏16 KB

Maybe you are looking for

  • Transporting a Function Group

    Hi All, I created a new function group and few function modules within it. Function group is attached to one transport request. But for some reasons I want  to transport it with some different transport request. So I deleted it from original request.

  • HOW TO CREATE A CONNECTION IN BI PUBLISHER WITH VARIABLE ENTRY

    I've created one user(say BIPUB1) from AS OIDDAS portal and assigned him XMLP_ADMIN role. I've 10 other users with whom I will share a report. Each user has different authorization(VPD based). Now I want to create a BI-publisher report using a discov

  • Extracting "File Properties" metadata from Photoshop CS3

    After processing scanned images in Photoshop CS3, I am up loading them to a DAM solution that has the capability to extract embedded metadata using custom defined keys. I would like to know the syntax/structure of embedded metadata labels that displa

  • What color profile for digital printing?

    Under color settings in InDesign i only find profiles for offset press but what color profile should i use if i want my document printed on a digital printer?

  • SunMC Console on a Mac?

    Hi there, Just wondering, did anybody try running the Console on a Mac with OSX? I'd love to be able to monitor the network with my Mac ;-) Regards, Emerald