LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read excel cell when excel is already open

Solved!
Go to solution

Hello,

 

I want to read a specific cell of a sheet with excel already open. Labview has only to read the cell and not have to open excel.

I have several examples that show :

  1. Labvview open excel
  2. select excel file
  3. select workbook
  4. select sheet
  5. select cell
  6. read cell
  7. close workbook
  8. close excel

In my vi i only need the step 3 to 6

 

Thank for your help

Djamel

0 Kudos
Message 1 of 3
(2,728 Views)
Solution
Accepted by topic author Djamel_LFC

The attached (LabVIEW 2012) vi will return the value in the cell 'A1' of 'Sheet1' of the already open excel workbook 'book1'

 

Change the values for your specific names of workbook and worksheet and required cell.

 

The value returned is a variant so need to be converted with 'Variant to Data' according to data type

 

Ken

Message 2 of 3
(2,711 Views)

Thanks a lot thank you for your quick answer, it's precisely the solution I was looking for.

 

Djamel

0 Kudos
Message 3 of 3
(2,692 Views)