From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Copy Excel Chart to Labview front Pannel

Solved!
Go to solution

I posted an example in this thread where I used the the Excel Range.Selection event with a callback vi to copy in LabVIEW a selected range in Excel. The callback vi would have to be modified to accept a single cell selection but this should be relatively simple.

EDIT: I used the Worksheet.SelectionChange event. 

 

Ben64

0 Kudos
Message 11 of 16
(761 Views)

@ben64 wrote:

I posted an example in this thread where I used the the Excel Range.Selection event with a callback vi to copy in LabVIEW a selected range in Excel. The callback vi would have to be modified to accept a single cell selection but this should be relatively simple.


But he simply wants to copy data in Excel, and paste it in LabVIEW.

0 Kudos
Message 12 of 16
(757 Views)

Is this in Edit mode or Run mode?

 

George Zou
0 Kudos
Message 13 of 16
(738 Views)

run mode

0 Kudos
Message 14 of 16
(727 Views)
Solution
Accepted by alii001

1. Create a custom popup menu for the table.

2. use event structure to catch the menu select event.

3. use clipboard function to import the csv string from clipboard.

4. convert the csv string to 2D array of strings and display it in the table.

 

 

George Zou
0 Kudos
Message 15 of 16
(717 Views)

Thank you.

With your direction key words "CSV", I searched the forum again with words" CSV + clipboard ", and eventually  found what I want.

 

https://forums.ni.com/t5/Example-Programs/Clipboard-Copy-amp-Paste-from-Excel-CSV-to-2D-Double-Array...

 

I modified a little of that attached VI,and it can fullfil my needs.

0 Kudos
Message 16 of 16
(695 Views)