LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Excel Overwrite Question

I am using the Excel Report fp along with CVI 8.0.

 

How do I suppress the file overwrite prompt generated by excel when I initiate the following command ExcelRpt_WorkbookSave ?

 

I am first using a FileSelectPopup to prompt the user to create or select a file. If a file that already exists is selected, an overwrite prompt appears which must be selected.

This is ok.

 

However, when the ExcelRpt_WorkbookSave function is executed, excel will then launch another prompt on its own.. I need to suppress this second prompt.

 

Thanks

Diego

0 Kudos
Message 1 of 4
(4,221 Views)
While I cannot say anything on the second message, the one on FileSelectPopup is only shown if you choose "Save" as the button label: either choosing "OK", "Select" or "Load" prevents from showing the confirmation message.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 4
(4,213 Views)

Roberto,

Good solution, thx.

 

I am still curious if there is a way to suppress the excel prompt.

 

Diego

0 Kudos
Message 3 of 4
(4,201 Views)

I don't think there is a way to do it directly.

 

You may have to save the worksheet to a temporary file, delete the original file, then rename the temporary file to the original filename.

--
Martin
Certified CVI Developer
0 Kudos
Message 4 of 4
(4,198 Views)