取消
顯示結果 
搜尋替代 
您的意思是: 

Excel Board

 
File attached....
 
Have gone thru FAQs and examples. (And also 4 parts of 'Creating a Report in Microsoft Excel Using the LabVIEW Report Generation Toolkit'. Unfortunately this document is not clear enough for me.)

Have task of modifying rows of the same excel sheet, number of times without touching data  already present (numbers and strings)

I have an excel file. (attached)
A test will be run N number of times.  (n and N<=17)
SubTask 1 --> Each time it runs, string data needs to be placed in 'n'th row. (...there are going to be notes in Row 18 and row 19)
SubTask 2  --> Each time it runs, a 1D array data also will be placed in the same row (but in different cells)
SubTask 3 --> The number 'n' of the row (where to place the current iteration's data) needs to be determined on fly (by looking at "n-1"st non blank row)
The same file needs to be used.
How can above be achieved ?
 
thanks
Sandeep
11 條訊息(共 91 條)
32,275 檢視

I'm sorry sandeep but you will have to post this question in the Labview or appropriate forum. This board shall only be used to link to a discussion thread or to post VI's that already do a specific task.

Thank you. 




Joe.
"NOTHING IS EVER EASY"
12 條訊息(共 91 條)
32,280 檢視
Here is a very handy piece of advice for anyone who is unsure about how to do something in Excel with ActiveX.
13 條訊息(共 91 條)
32,093 檢視
Here are another few useful pieces of advice on Excel and ActiveX.

Points of note: Ensuring that you close all references in the reverse order of opening them

"Note that any function which returns a reference opens a new reference (Ranges need to be closed too)" - seems obvious, but I missed it until I read this.

Thanks to Steven and Shane for the info.
14 條訊息(共 91 條)
32,003 檢視

In this thread

http://forums.ni.com/ni/board/message?board.id=170&message.id=218543&a#M218543

Michael Monroe shares another method that lets you do this!

Ben

BTW Michael has posted many MS office type solutions. If you can't find what you need in this thread, search through Michaels postings.

http://forums.ni.com/ni/view_profile?user.id=7764

PS: Great work all on putting this thread together!

Message Edited by Ben on 12-05-2006 07:40 AM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
15 條訊息(共 91 條)
31,967 檢視

Here is a nice description on how to select an existing worksheet either by index (number) or by name:

http://forums.ni.com/ni/board/message?board.id=170&message.id=135193

16 條訊息(共 91 條)
31,974 檢視

In this thread David Crawford posts an example using VBA with Excel from LV.

http://forums.ni.com/ni/board/message?board.id=170&message.id=218856&a#M218856

Ben

PS Nice to see you back LJV. 冷淡表情高興表情極度高興的表情吐舌表情眨眼表情

 

Message Edited by Ben on 12-05-2006 06:56 PM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
17 條訊息(共 91 條)
32,058 檢視
I haven't used it, but you can find an Excel toolkit here.

___________________
Try to take over the world!
18 條訊息(共 91 條)
31,806 檢視

Here is a post where i give an example of inserting a row into an excel file.

 




Joe.
"NOTHING IS EVER EASY"
19 條訊息(共 91 條)
31,668 檢視

Hello

Can anyone help me in copying the contents of a cell in Excel and paste to the a wrod document. With the VI in the above message i was able to get the contents in a cell in excel , but as a table. When i directly connect the output from array to spreadsheet string to a specific position in word it does not work. Can any one help?[ I have attached the vi for it below]

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
20 條訊息(共 91 條)
31,615 檢視