Sort excel spreadsheet using activex

Hi all

I need to find a way to open and document, excel adds a row of data, then sort the data in the first column and save the document again.  I've seen and used other commands of activex for excel, but I have not found a way to do what I want to do.  I'm also using labview 6.1.  I found an example in 7.0, but I couldn't use it.

Thanks for any help.  It has been a nightmare to try to understand the command spell.

Thanks, Jeff

jbreefer wrote:

but the activex for sorting does not work.  It will open the excel document and highlight all, not sort, then save and close.

I also see this. Quite special. A problem is that when 'Key1' is specified by a string, then the assumption is that there is a range defined in the workbook called 'A1' (the example in this case). Even if explicitly link you a range for the parameter "Key1", according to documentation of the kind, it still does not. Yet, it works perfectly well in the macro. I don't know what is happening and you will have to examine this new.

A short term solution is to have a macro in the worksheet to sort, and then simply call the macro in LabVIEW.

Tags: NI Software

Similar Questions

  • Adding a table Excel file using ActiveX

    Hello

    I want to add a figure that has been produced using data from data acquisition to a specific cell in my existing excel file (reversing a graphical indicator in jpg/bmp,... and put it in the excel file). But I can't find the specific method to do so. I have changed one of the examples so I can add a few numbers to a specific cell in excellent file (VI attached). Someone knows how to do this?

    Also, in my test, I'll do this for 15-20 numbers (put 20 numbers in different places in the existing Excel file). I do this one by one? (opening of the application 20 times) or there is a way to just do all at the same time.

    Thank you.

    Now, it looks a lot better.

    I also added the part in which the image is from a waveform graph. For this you must use the Invoke node Export Image waveform graph. I've exported as bmp, save it in a file and then added in Excel. It is a solution. You can try different image format in order to find the one that works best for you. BMP is big enough.

    Another solution would be to use the graphical waveform / invoke node / export the Clipbord Image and spreadsheet use invoke node function / paste. In this way, that you don't have to write the image to the file. Although I find it more difficult to control the position where the image is pasted. In any case, you can give it a try and play with her a little.

    You can build your complete code Export To Excel using this example. Just add a loop (or code) between the opening of the workbook and close it.

    PS: I hope that the waveform graph node is the same also in LV2010. I can verify that Monday.

  • Insert rows Excel spreadsheet using LabVIEW

    Hello

    is it possible to get each row of a table in a spreadsheet different, for example the 1st rank in the 1st sheet and so on using just EXCEL ADVANCE live

    for example the 1st rank of the 1st worksheet

    Hey achfire,

    I made a few changes to your code, and it seems to work now. In General, we do not want open and close references or files within a loop. Instead we can open the file once, read/write to it in our loop and then save/close it when finished. I also removed the function array index, regarding the loops can auto-index loop bounaries. (That also prevent us from having to wire a number of iterations in the Terminal "N".)

    Let me know if it helps!

  • Writes the value to a specific cell in Excel sheet using ActiveX in LabVIEW


    Shaz,

    You open a single reference to a worksheet and then at the same time, you have several instances of "close Reference.vi' racing to close the same reference.  As soon as an instance closes the reference the rest of the code is broken.

  • Management of Popups in Excel using ActiveX

    I'm having a problem similar to the problem that is referenced in this post:

    https://forums.NI.com/T5/LabVIEW/handling-popups-of-Excel-while-editing-it-via-Active-X-control/TD-p...

    The difference being...

    My company has a "database" Excel that stores all our product information. At the start of my application, I read this database using ActiveX. Recently this Excel sheet has been updated to include new features by someone else in my company.

    Now, when you open this particular spreadsheet, I get this message:

    It does not come to the front of the screen, and unless the user realizes that it is for the LabVIEW program seems to hang up, causing the user to close the LabVIEW program, because they do not realize that LabVIEW is waiting on Excel, which is waiting on the user to make a selection on this popup.

    In the post that I quoted above, they get around this by using a knot of property with the property 'Alerts', set to false. This works to hide mistakes but doesn't seem to work for this instance.

    Is it possible, via ActiveX, to "click" the button "Update only ' without the user having to do this.

    OR

    The worst case scenario, is there a way to bring this popup forward to alert the user that Microsoft Excel requires an entry?

    Thank you

    If someone stumbles on this page looking for a solution, here's how I ended up solving the problem:

    http://support.Microsoft.com/kb/826921

  • Writing Excel using activeX - missing data after column IV

    Data size is about 400 (col) x 100 (row), save in excel using ActiveX, it cuts the data only with 256 columns, other IW data... are missed.

    How to solve this problem in LabVIEW? I save the file in .xlsx format.

    Pls ignore this question because I already solved the problem, thanks to you all!

  • Using an Excel spreadsheet to fill the fields

    Hello

    I am creating a form with LiveCycle Designer 8.2 where the user selects a field, and then a lot of fields is filled automatically based on the selection.  For example, the user selects the name of the project, on which they work and then project details (for example the location, owner, contact, industry, etc.) are automatically populated with the data from an Excel worksheet.

    I will distribute this form to a wider audience, so data that fills the form will have to "stay" with the form after the distribution.  The worksheet Excel should be sent with the form to get there?  Or the data automatically move with the form once it is sent?  If not, is there a better way to accomplish such a task?

    Examples would be extremely useful.

    Thank you!

    While you can create a PDF file from an Excel spreadsheet, the intention is to capture the appearance of the worksheet and not on the behavior associated with the worksheet. You must add objects in the designer to make the interactive form. In addition, you can use Excel data to populate list boxes and drop-down lists at the time of the design, but the worksheet has no relevance running.

    The simplest solution in my mind is to export data from Excel to a comma-delimited format and use the data to create one-dimensional arrays in the designer. The tables can be used to fill drop-down lists and drive the behavior of the form.

    By example, for a menu drop down called 'projectName' create an initialize event that calls a function in a script object called "loadProjects".

    Form1.Page1.Subform1.ProjectName::Initialize - (JavaScript, client)

    myScriptObject.loadProjects (this);

    The function loads the drop-down menu with the values in the table called "projects". On the exit "projectName" event, if a value is selected in the menu drop-down 'loadData' function is called to fill the 'rent' and the 'owner' based on the index of relative table. If a value is not selected in the drop-down fields 'rent' and the 'owner' are reset.

    Form1.Page1.Subform1.ProjectName::exit - (JavaScript, client)

    If {(this.isNull)

    Form1.Page1.Subform1.location.RawValue = null;

    Form1.Page1.Subform1.owner.RawValue = null;

    }

    else {}

    myScriptObject.loadData (this);

    }

    Form1. #variables [0] .myScriptObject - (JavaScript, client)

    projects of var = new Array ("","ABC","DEF", "GHI");

    localities of var = new Array ("","Sacramento","Ottawa", "Fernie");

    the owners of var = new Array("","Anne","Bruce","Carl");

    function loadProjects (dropdownField) {}

    for (var i = 0; i)< projects.length;="" i++)="">

    dropdownField.addItem (projects [i]);

    }

    }

    function loadData (dropdownField) {}

    Rentals [dropdownField.selectedIndex] = Form1.Page1.Subform1.location.RawValue;

    Form1.Page1.Subform1.owner.RawValue = owners [dropdownField.selectedIndex];

    }

    Steve

  • I created a custom list of base in Sharepoint - not used excel spreadsheet. How to create drop down menus on 3 columns.

    I created a base with 6 columns Sharepoint list.  Now my boss wants to drop-down menus for quick selections in 2-3 of the columns.  How can I add drop-down menus.  This list has not been created in an excel spreadsheet.  I'm not a programmer, but an admin - Basic, normal language assistant would be a great help.

    The columns in the list are:

    The team fall down to 4 teams

    Date of introduction

    Submitted by fall to the low needed for people on the 4 teams

    Initiative

    State required combo for 4 options

    Date of completion

    Hello

    Sorry, it is not a community forum for SharePoint.

    Choose the appropriate forum (probably a General Discussion forum) here:

    http://social.technet.Microsoft.com/forums/en-us/category/SharePoint

    Don

  • How to write data in an Excel spreadsheet protected (with unlocked cells)?

    Hello!

    I have LabVIEW 8.2 and I often use the report Generation Toolkit for Microsoft Office' to save data in Excel spreadsheets. So far, I only used the leaves unprotected.

    But right now, I have an Excel worksheet protected by some cells unlocked. If I open the file using Excel I can fill these unlocked cells without any problem. However, I am not being able to fill these cells unlocked using LabVIEW and the Toolbox. I have a few questions:

    (1) is it possible to use LabVIEW to write data in a protected Excel worksheet, even though she has unlocked the cells?

    (2) if it is possible, how can I do that?

    OBS: I noticed that if I unprotect the sheet, I can write data to the file. But I don't want to be protected and the protection of the sheet, since users will not have the password.

    I hope that I was clear. I really appreciate any help you can provide.

    Thanks for the replies.

    Use ActiveX I could write the cells individually. By doing this, I could write in the unprotected cells without any problem. hour

    Probably, the Toolbox has been activated somehow the overall protection of the spreadsheet and Excel was not allowing writing.

    I had never used before ActiveX, so I had to learn it from scratch. I was looking for some tutorials on the internet but I have not found much information easy. What struck me the most help is an example that comes with LabVIEW named "Excel - write Table.vi. After some tests, I was able to open my data protected from the worksheet and fill in the unlocked cells.

    Thank you guys!

  • bind data to labview with excel spreadsheets

    I would like to save the output of a cluster (containing digital data or strings) in a specific format (each data in the respective columns)

    in an excel sheet.

    How can I do in labview?

    I tried mathscript, is there another way? If it is not u can suggest how can I use it to solve the problem mentioned above.

    Similarly, can I receive data in real-time from excel spreadsheets?

    pls suggest.

    I think you should use the ActiveX for the satisfaction of your needs.

    You can see this example

    \examples\comm\ExcelExamples.llb\Excel macro Example.vi

    Use activeX to write and read data.

  • Excel spreadsheet Voodoo

    Hi all

    For a job/hrs. paid should I fill out my information in an excel spreadsheet.

    As soon as I get a number of hours worked in say D2 a triangle of red error appears where there is a formula that is not happy.

    The error says "Argument 1 of the TOUR expects a number, but the cell contains a date." Even if the cell in question has requested an hour in 15:00 format I entered. ???

    The second thing is that the spreadsheet I use was sent to me by a PC person who says I use an older version of the form and that is the problem. However, I use the updated version, she sends me every time, by clicking on it with the mail to open in number. For some reason, either at the end or mine numbers back to the original version of the document when you open or save after I have sent him filled form. Or some other Voodoo that happens.

    Is there something I need to do on my end when export to ensure that it exports to the version that I just opened? Figures has a bad memory or something?

    Thanks for any idea,

    Al

    It would be useful that you could provide details, perhaps even the real formula! "

    Excel and numbers to deal with date and time values differently. Each method has its own advantages.  The differences may be causing your problem.

    If you work frequently with users of Excel, you can consider using Excel for Mac.  Although numbers can import/export from/to Excel it is not designed to be an Excel "clone".

    Meanwhile, according to the formula that gives your problem and maybe there is a quick fix that works in your case.

    SG

  • "-2146827284" error code when you try to open a workbook using ActiveX

    Hi all

    I have a problem using ActiveX to open excel files. I get the error code '-2146827284' (unknown error) when trying to open a workbook. This problem occurs on a single machine, that I work with, on the other, it works very well. All machines have the same configuration, Excel97 and Excel2007 installed on them.

    Any ideas?

    Thank you


  • How to write a single value in an excel spreadsheet

    Hello

    I use an excel spreadsheet, as if it were an external code module. He does a lot of calculations, all I do is write an individual value, let calculate what it should only then read a return value from this.

    I already have a structure able to read a table, but could someone help me with a piece of code that could write a single value?

    (To read a value unique too may be practical)

    Also, I have the new LabVIEW 2009, so while a fancy to drop some code here as one. PNG, it would be nice to see if this new feature works!

    Thank you, Alec

    Try this. There are 2 point methos (get) and point (put) to read and write the value respectively to a cell in excel.

    Good luck

  • Windows media player to the excel spreadsheet explort music library

    I'm trying my library of windows media player 10 to export to an excel spreadsheet and I can't find a simple way to do it.  Does anyone know how to do this?  Thank you!

    Hello

    There is no option of Microsoft that exports the information of music library to Excel.

    However, you can use your favorite search engine and check if there are any third-party tool that will help you to support your petition.

    NOTE: Microsoft cannot guarantee that problems resulting from the use of third-party software can be resolved. Software using third party is at your own risk.

  • You can convert a pdf file to an excel spreadsheet?

    You can convert a pdf file to an excel spreadsheet?

    Hi KrisBeck,

    Some third-party tools are available online to accomplish this task.

    Use your favorite search engine to find this file converter.

    Important: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

Maybe you are looking for

  • Unable to find the "Show all bookmarks" button on Firefox 29

    I can no longer locate the "Show all bookmarks" button in the menu bookmarks Firefox 29. I tried to search in the bookmarks bar, but it's not there either. I would like to manually save my favorites from time to time - is there another way to do this

  • Portege R700: Speed Port Replicator HI + USB Vista questions

    Good afternoon I am having trouble with 4-5 new R500-1hd (311th short number), the number could be higher, but users could not have reported it.If the laptop is disconnected from the HI Speed Port Replicator 2, it off very well and the laptop can be

  • I have a virus on my Macbook help!

    I am almost certain that my Macbook Pro has a virus! Whenever I am on a site (a site Web, anyone) my mouse icon will blink then the site will open in a different tab and the original tab turns into an ad! It has been going for probably two weeks now

  • Lenovo shot vibe root

    This is how the root of the forum lenovo China. http://Club.Lenovo.com.CN/thread-896427-1-1.html but all the files are in cloud storage China requiring China to enter phone number. can someone download and download again in the box / box / mega / med

  • How to use the acquisition of input data acquire a signal at a frequency while writing to the file at a different frequency

    Hello I'm trying to read in a temperature of a thermocouple and displayed on a waveform graph and at the same time, I want to write data to a file at a significantly lower frequency.  Currently, I am sampling data acquisition at chaque.01s and I woul