Filter excel data using activex

Hi,
I have imported some datas to excel using labview, and using activex I can able to apply filter also. Attached screenshot is sample excel data. In that, I want column 3 to filter only 500 and then 100 and so on. Is it possible in activex. Because  after filtering 500 I want to find least value for athoer columns 1st and put it in another sheet, then filter 100-->find least value-->put it in another sheet. So what I want now is to filter 500 alone in column 3 using activex. thanks in advance
Thanks & Regards
saamy 
Attachments:
screenshot-excel.jpg ‏114 KB

If any1 know this.. please let me know..thanks in advance

Similar Messages

  • Excel operation using activex

    I am trying to use activex with labview to copy a specific worksheet from a multi-sheet excel file to another spreadsheet file. How can I do this? Any example vi? All my example files are about making a copy within the same file.
    Yin

    Yin,
    You can use the VI from the following web site
    Writing Rows to Excel 97 and Excel 2000 Using ActiveX
    The VI allows you to write to a specific worksheet. You can use some of the SubVIs provided to first get a reference to the worksheet in the first workbook, for example SelectSheet and OpenSheet VIs.
    Or you can look into LabVIEW shipping examples on Excel, Write Table to XL VI, which also allows you to open specific Worksheet.
    Some good examples on how to read from Excel using Activex are located on these web sites:
    Reading Values from Microsoft Excel 97, Excel 2000, or Excel XP Worksheets
    Write and Read to an Excel 2000 Spreadsheet via ActiveX
    Zvezdana S.
    National Instruments

  • How can I add excel pictures using activex

    I would like to be able to use activex to insert an image into an excel spreadsheet. I know how to read and write data, but the chart feature is too cunmbersome and when I updated excel to 2007 most of the calls stopped working. I see that there is a pictures property/method that lets me specify an image file, but I don't know which property/method(s) to call it from.

    2007 does take more time to draw the data on the chart. I am not having any problems with errors on the active X for 2007. I is much slower than 2003 I would agree. My IT group moved us to 2007 so I am stuck with it no matter how slow it is. I am trying to figure out how to get the help file back. I had these in 2003 myself. I know it has nothing to do with LabVIEW. It is an add in or some switch that you need to throw in excel to allow for this connection.
    Tim
    Johnson Controls
    Holland Michigan

  • Error code "-21468272​84" when trying to open an Excel workbook using ActiveX

    Hi all,
    i have a problem using ActiveX to open excel files. I get error code "-2146827284" (unknown error) when trying to open a workbook. This problem occurs on only one machine i work with, on the others it works fine. All machines have the same setup, Excel97 and Excel2007 installed on them.
    Any ideas??
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    ExcelToolkit open.PNG ‏53 KB
    ExcelToolkit open FP.PNG ‏32 KB

    andyforpresident wrote:
    For sure the file is there, the _application object gets created without an error.
    Creation of the application object has nothing to do with opening the workbook, which is what is generating the error. If you are getting an error with opening the workbook then you either have the wrong path, a permissions issue, a network issue, or the file is already open.

  • How to change series or line color in excel 2007 using ActiveX

    I am trying to change series color using Excel 2007 with ActiveX as below. It seems the color cannot be controlled correctly. For example, if I chosse red color, my curve will be changed to blue. Any ideas?
    Also, I googled and found a guy ran into similiar problem using VBA for Excel 2007. See the link below:
    http://help.wugnet.com/office/change-series-line-color-excel-2007-vba-ftopict1062646.html
    Set ch = Worksheets("Chart").ChartObjects(1)
    Set objSeries = ch.Chart.SeriesCollection(1)
    objSeries.Format.Line.ForeColor.RGB = RGB(255, 127, 0)
    According to the post, it need to be done as follows
    objSeries.Border.Color = RGB(255, 127, 0) . But I cannot find the border property/method in ActiveX.
    The color seems to be abitrary. and I found the 

    Xubuli,
    I looked into your question and confirmed that Border.Color is not located under the Excel.Series library. Instead, you must locate it under _Worksheet.UsedRange as seen below in the figure. I am attaching the VI file where I located the the Border.Color property node, and I am also including a SubVI on the block diagram that goes into explicitly set the cell color and border. This SubVI can be found under Programming>>Report Generation>>Excel Specific>>Excel Format>>Excel Set Cell Color and Border.vi, if you have the Report Generation Toolkit installed. I hope this helps.
    Larry H
    Applications Engineer
    National Instruments
    Attachments:
    CellBorder.vi ‏8 KB

  • Filter Display Data using Form Personalization

    Hi All,
    I have 2 blocks, Query and Detail block.
    Based on search criteria from query block the details are displayed in detail block.
    Now i want to filter display data in Detail block by adding org_id condition through form personalization.
    I would like to know if its possible by form personalization.
    Thanks

    not sure any auto feature available but u can set the DEFAULT_WHERE property of the Block using SET_BLOCK_PROPERTY and execute query after it
    search DEFAULT_WHERE in this forum for examples
    Baig,
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • How to filter complex data using pl/sql

    Hello,
    i have to filter some data from the table with 1millions rows in it.
    here the requirement
    for example table is TEST
    id type
    1 a
    1 a
    1 b
    2 c
    33 b
    33 b
    33 c
    33 d
    5 c
    5 c
    now i just want to display the results which contains type c only if id is with also connected other than c than i dont want to dislplay that results
    so my result will look like .here i dont want to disply id 33 because some the id with 33 are connected with type other than c.
    id type
    2 c
    5 c
    so can please give me idea to make a query on that table
    thanks in advance

    with t as (
               select  1 id,'a' type_cd from dual union all
               select  1 id,'a' type_cd from dual union all
               select  1 id,'b' type_cd from dual union all
               select  2 id,'c' type_cd from dual union all
               select 33 id,'b' type_cd from dual union all
               select 33 id,'b' type_cd from dual union all
               select 33 id,'c' type_cd from dual union all
               select 33 id,'d' type_cd from dual union all
               select  5 id,'c' type_cd from dual union all
               select  5 id,'c' type_cd from dual
    select  id,
            type_cd
      from  (
             select  id,
                     type_cd,
                     count(distinct type_cd) over(partition by id) cnt,
                     row_number() over(partition by id,type_cd order by 1) rn
               from  t
      where type_cd = 'c'
        and cnt     = 1
        and rn      = 1
            ID T
             2 c
             5 c
    SQL>SY.

  • Facing problem in writing data to excel sheet using ActiveX

    Hi.
    I want to write data from a one dimesional array to a particular excel sheet in a particular row.Please see the attached vi for explantion.
    It is giving error.But If I give a new file name when the appliation is getting closed it is writing data to the new excel file.
    Please help.
    Thanks in advance
    Attachments:
    Excel sheetWrite.vi ‏90 KB

    Thanks Jhoskin and Rudi .......
    I am able to write data to excel sheet now. I am attaching one"test.zip" file that contains a VI named "Squence.vi "that contains another subVI named "Write U94006 Table To XL.vi"which does the functionality of counting the number of rows in the excel sheet and writing data in the next blank row. I am using the same subVI in the VI named "Sequence.vi"two times so it is taking a lot of time in opening and closing the excel sheet. Will you please suggest some way of calling the subVI only one time.
    Rikki
    Attachments:
    Test.zip ‏105 KB

  • Ever get error code "-2146827284" when trying to open an Excel workbook using ActiveX

    The error message claims that the file cannot be found, but the file is clearly there. Ever seen this?
    Strangely, this happens on one machine, but not on another. I'm suspecting some kind of ActiveX incompatibility and would love suggestions on how to track this bugger down (I submitted to support also).
    Thanks
    Brad
    The attached vi exhibits this behavior (on one machine anyway)...
    Attachments:
    footest.vi ‏30 KB

    Brad,
    My suggestion is that if you know exactly where does your Excel ActiveX Library resides, please look for it and re-register it in windows, using the regsvr32 command. If not, please check wether the Excel version of the machine that is having problems is the same version as the machine where it is actually working. Last resource you may want to try to reinstall Excel after trying some of the Excel examples that came with LabVIEW. If you feel that you need more direct assistance please contact us directly, you may wish to call us or email us and you can find the information for doing so at www.ni.com/ask in the internet.
    Good luck!
    Nestor Sanchez
    Applications Engineer
    National Instruments
    Nestor
    National Instruments

  • Problem in getting EXCEL data using I_OI_SPREADSHEET

    Hello All,
    My requirement is to read data from Excel document having multiple worksheets. I am successful in getting all worksheets in the excel using the method spreadsheet->select_sheet.
    Now I face problems while using spreadsheet_get_ranges_data. I dont have any range to select from the worksheets. When my program executes contents internal table which is importing paramater from get_ranges_data method is not getting me data from EXCEL.
    Can you please give me hint or solution to solve this issue.
    Best Regards,
    Krishna
    [email protected]

    Hello Norman,
    Thanks for your response. But the solution is not really working for my case.
    Step1: call class method spreadsheet->select_sheet
    Step2: call class method spreadsheet->get_active_sheet
    Step3: call class method i_oi_document_proxy->select_all
    Step4: call class method spreadsheet->get_selection
    Step5: Call class method spreadsheet->insert_range_dim
            passing parameters selected from step 2.
    But the problem is parameters (top,left,rows,columns) values supplied in step 3 is not giving me correct rows,columns that is in my EXCEL worksheet.
    I have 3 rows and 3 columns, but I get 1 row and 1 column and 26 as top.
    Let me know whether I am doing anything wrong in my calls to class?!.
    Best Regards,
    Nagendra Krishna
    [email protected]

  • How to write to a password protected excel sheet using ActiveX?

    Hi all,
    I would like to write to a protected Excel sheet. I protect the sheet just in case the data is not wrongly programmatically saved to other cells. These cells contained formulas.
    Please help.
    Thanks,
    keng

    Hi Randy,
    Thank you for looking into my problem.
    I have looked into the Workbook.open property node. There is "password" on the property node. Please see attached diagrams.
    Is is the right way to do it?
    Please advise further.
    For your information, the Excel workbook and sheet 1 are password protected.
    Thanks,
    keng
    Attachments:
    Password_Excel.jpg ‏37 KB
    Password_Sheet.jpg ‏23 KB

  • Efficiency of using activeX for Excel

    I've been using data logging for our test fixtures in .tsv files, but our engineers want to automate it further by organizing some new data into several sheets, so I'm looking into manipulating Excel directly using ActiveX.
    My question is how efficient is it to write this in ActiveX compared to just making a text file? I'm concerned that, since we're going to be writing some 50000 cells or something, that it'll suck up a lot of memory to do it through ActiveX. 
    Is this a legitimate concern, or am I just being paranoid?
    Anything worth doing is worth over-doing.
    LabVIEW Junkie

    Thanks for all the help, guys! 
    A couple of things -- first off, I'd love to look at that code if you get a chance. But what I'm concerned about is if I create an array of 50000 values or something like that and write it all in one go at the end of the program, two things are going to happen: 1) it's going to take a really long time to finish the program, and 2) if the program crashes in that final step, I'll lose all the data. That second reason is why I currently write a line every cycle to the .tsv file. 
    What I'm thinking of doing, is meeting you halfway -- rather than write each cell individually, write each line individually within the spreadsheet. This should reduce the memory used (hopefully) and increase performance.
    I haven't really played around with TDMS yet, I'll look into it. A couple questions on that -- does it write in excel format? The reason I ask is the second sheet that I'm supposed to add is not going to contain any changing data -- it's just to store some constants that are set on the front panel. If TDMS stores data in excel format, I can write it to TDMS, transfer to Excel, and then use ActiveX to add the second worksheet with the constants at the end of the program. How's that sound?
    Thanks again!
    Anything worth doing is worth over-doing.
    LabVIEW Junkie

  • Upload excel data into Internal table

    Hi,
    I'm trying to upload excel data into internal table, well the excel file layout will be different on each run of the report.
    Excel file will have 60 columns and 500 record limit. I can upload the excel data using 'ALSM_EXCEL_TO_INTERNAL_TABLE' and 'KCD_EXCEL_OLE_TO_INT_CONVERT' but the output table is generates 60 lines for each record i.e.., 60 * 500 = 30,000 which could cause performance.
    I try with the FM 'TEXT_CONVERT_XLS_TO_SAP', but this will only work if the file structure is static. It didn't work for dynamic file layout. Even GUI_UPLOAD doesn't work to upload excel file, it will work if I convert the file to Tab delimited file.
    Please advise if you know any alternate procedure to upload excel data into internal table.
    Thanks,
    Kumar.

    Moderator message - Cross post locked
    Rob

  • Problem in Uploading Excel Data ! - Urgent

    Dear Experts,
    I am uploading excel data using FM 'TEXT_CONVERT_XLS_TO_SAP' , its directly convert data and store in internal table same as in excel sheet(row , column wise).
    But the problem is , one of the column having description more then 500 characters. so while uploding excel to itab its truncating the text and only uploding 255 characters.
    Is there any other way , so that i can upload more then 500 characters long text. Also i have tried 'ALSM_EXCEL_TO_INTERNAL_TABLE' FM , it was also not working.
    Please Help me , its Urgent.
    Points will be rewared.
    Thanks & Regards,

    Hi,
    Please use FM 'GUI_UPLOAD'.
    types: begin of ttab,
           rec(1000) type c,
           end of ttab.
    types: begin of tdat,
           fld1(10) type c,
           fld2(10) type c,
           fld3(10) type c,
           end of tdat.
    data: itab type table of ttab with header line.
    data: idat type table of tdat with header line.
    data: file_str type string.
    parameters: p_file type localfile.
    at selection-screen on value-request for p_file.
      call function 'KD_GET_FILENAME_ON_F4'
           exporting
                static    = 'X'
           changing
                file_name = p_file.
    start-of-selection.
      file_str = p_file.
      call function 'GUI_UPLOAD'
           exporting
                filename                = file_str
                filetype                = 'ASC'
           tables
                data_tab                = itab
           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.
    Best regards,
    Prashant

  • Reading Excel data through java servlets

    I am doing a project in jsp and servlet. During the project i have to read some excel data from the excel sheet and store them to DB2 database. While reading from the data from the excel sheet a problem occurred. I have used the poi package to read the data from the excel sheet and the code is correct and it reads the excel sheet. Now i just displayed the number of rows and cells in the excel sheet and while displaying the value of the every cell, the servlet displays only the address of each cell instead of displaying the value. Here i am attaching the code that i have used and the output of the servlet.
    One more thing that i have noticed here is i just wrote a simple java program to read the excel data using the same steps that used earlier in the servlet. In this case the program displays the actual value of the excel cell.
    Could you please help me to solve the problem.
    try
    String fileName = req.getParameter("file1");
    String filePath = "C:
    Program Files
    Apache Software Foundation
    Tomcat6.0
    webapps
    kbsearch
    WEB-INF
    Excel Fles
    "+fileName;
    poifs = new POIFSFileSystem(new FileInputStream(filePath));
    book = new HSSFWorkbook(poifs);
    sheet = book.getSheetAt(0);
    int totalRow = sheet.getLastRowNum();
    out.print("Total Number of Rows: "+totalRow);
    for(int i=2; i<=totalRow; i++)
    row = sheet.getRow(i);
    int totalColumn = row.getLastCellNum();
    out.print("<br>Total Cell: "+totalColumn);
    for(int j=0; j<=totalColumn; j++)
    cell = row.getCell((short)j);
    out.print("<br>Cell Value: "+cell);
    catch(Exception e)
    out.println("
    Error: "+e.getMessage());
    OUTPUT
    Total Number of Rows: 9
    Total Cell: 9
    Cell Value: org.apache.poi.hssf.usermodel.HSSFCell@1450f1f
    Cell Value: org.apache.poi.hssf.usermodel.HSSFCell@e3f02a
    Cell Value: org.apache.poi.hssf.usermodel.HSSFCell@ac622a
    Cell Value: org.apache.poi.hssf.usermodel.HSSFCell@160c21a
    Cell Value: org.apache.poi.hssf.usermodel.HSSFCell@1677737
    Cell Value: org.apache.poi.hssf.usermodel.HSSFCell@1c3dc66
    Cell Value: org.apache.poi.hssf.usermodel.HSSFCell@1babddb
    Cell Value: org.apache.poi.hssf.usermodel.HSSFCell@1069693
    Cell Value: org.apache.poi.hssf.usermodel.HSSFCell@187b360
    Cell Value: org.apache.poi.hssf.usermodel.HSSFCell@1172c5

    My copy of POI came with documentation including the Javadocs part:
    org.apache.poi.hssf.usermodel.HSSFCell
    double getNumericCellValue()
        get the value of the cell as a number. For strings we throw an exception. For blank cells we return a 0.
    public java.lang.String getStringCellValue()
    get the value of the cell as a string - for numeric cells we throw an exception.
    For blank cells we return an empty string.
    For formulaCells that are not string Formulas, we return empty String
    */

Maybe you are looking for

  • Errror while deploying ESS Business Package.

    Hi,    I'am deploying ESS SP11 Business Package and while deploying it in SDM it is giving me an error in the intial stage,when i press Start Deploymet option it is giving the error <b>"None of the available containers recognized the components of ap

  • Time Capsule with Backup unable to be connected to and restored

    I have recently rebuilt my iMac to 10.6.8 - I was previously on the same OS but wanted a clean install. My entire mac was backed up to a 3tb Time Capsule Having rebuilt I would like to restore some data from the Time Capsule but the iMac is now refus

  • Display resolution problem with Lightroom 5 on a laptop

    I installed Lightroom 5 on my older Lenovo laptop with 12080x768 native screen resolution.  This meets the minimum display requirements, BUT... When I open Lightroom and try to set up preferences, the lower part of the preferences window is displayed

  • Radio group with URL for image in a table

    I'm trying to display some text and an image for a radio group so the form looks like (*) text for item 1 {image for item 1} ( ) text for item 2 {image for item 2} ( ) text for item 3 {image for item 3} I've found these: Re: Is it possible to display

  • Toshiba Regza fades to black

    I have a 42" Toshiba Regza about five years old.  Recently, when I turn it on the picture shows for a second and then fades to black.  The audio still works during this time.  I turn it off and on a few times and finally the picture stays.  Anyone kn