LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

In Excel how to make a worksheet as default

Hello ,

 

I have a Excel file called Report.xls . In this file there are many worksheets. Everytime I open this Excel  file, i want the second sheet as the default sheet which is visible to the user. The Excel file should always open with the second sheet showing up.

 

Please let me know how to do it with LabVIEW. I tried all the property and methods of worksheet class but no success.

 

Thanks , Hema

0 Kudos
Message 1 of 3
(2,693 Views)

You need to either:

  • (simple) have the worksheet active when you save the file. The next time you open the workbook, it will open to that sheet
  • (harder) use events. Specifically, respond to the WorkbookOpen open event. This involves ActiveX events. There is an example showing how to use Excel ActiveX events that ships with LabVIEW.
0 Kudos
Message 2 of 3
(2,682 Views)

It should work as follows:

 

activesheet.png

 

 

Christian

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