LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to using Excel_WorkbookSave to save wanted file without a confirm message pop-up when the wanted file is opening?

Solved!
Go to solution

Hi dear,

    I am using CVI 8.0.

    I want to using Excel_WorkbookSave to save the wanted file that is opening, but always pop-up a message that need i confirm whether to overwrite the already existed file.

    If my answer is yes every time, Is there any way to disappear the boring confirm message?

 

0 Kudos
Message 1 of 7
(3,817 Views)

Is anybody here?

Just wait for your help online.

0 Kudos
Message 2 of 7
(3,815 Views)

1) Learn to be a bit more patient and don't expect answers within 5 minutes Smiley Wink Most contributors are volunteers...

2) Try to make use of the forum search: frequently it will already give you an answer, like this link should fully address your question: http://forums.ni.com/t5/LabWindows-CVI/I-am-looking-for-an-automatic-overwrite-in-ActiveX-for-MS-Exc...

 

Wolfgang

0 Kudos
Message 3 of 7
(3,811 Views)

Appreciate your reply.

Let me explain more. I do use Excel_WorkbookSave (hExcelWB, NULL), meanwhile i opened the wanted file manually. Then the confirm message pop-up.

And, If i haven't opened the wanted  file, the message don't pop-up.

Then ,i am seeking a way to disappear confirm message but keep the wanted file opening.


 

0 Kudos
Message 4 of 7
(3,808 Views)
Solution
Accepted by topic author TaoZ

TaoZ,

 

Excel_WorkbookSave(hExcelWB, NULL) function should work as what you want.  I tried it and there's no confirmation message popping up. 

 

If you open the excel file manually, make sure the file is connected to the workbook handle "hExcelWB".

Message 5 of 7
(3,793 Views)

Hi,

   Thank you very much, the file which is opened manually is connected to different handle.

   And if the file is connected to the same handle, it is ok to using Excel_WorkbookSave.

   BTW, could i disappear the confirm message when the file is connected to different handle?

Regards.

0 Kudos
Message 6 of 7
(3,777 Views)

I believe you can. 

Just make sure the correct file handle is used in the Excel_WorkbookSave function.

0 Kudos
Message 7 of 7
(3,750 Views)