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: 

Open a text file as excel file

Hi all,

 

I just want to show a text file (tab seperated) as an excel file. I just wanted to use the syst exec.vi for this. Anyone have any idea how to do it?

 

Your help is greatly appreciated.

 

Regards,

Muthuraman S

Regards,
Muthuraman
0 Kudos
Message 1 of 3
(2,325 Views)

Hi Muthuraman S,

you can open the file with this "excel 'filename'", but it only opens the file, it'll not separate your data into different cells.

 

Mike

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

Even if you want to show a txt file as an Excel file, the file extn needs to be changed to .xls by saving the original file as a copy & then opening it using the ActiveX Excel functions or the RG toolkit. It is better to save it as a .csv instead of a Tab delimited Excel file.

 

I m not sure how you are going to do this using the System Exec.vi. Smiley Indifferent

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 3 of 3
(2,311 Views)