简体   繁体   English

Excel VSTO 2007项目中的奇怪行为

[英]Strange behaviour in Excel VSTO 2007 project

I have a strange problem. 我有一个奇怪的问题。 I am working on a vsto project where from a Addin project I am opening a Template project. 我工作的地方从加载项项目中,我打开一个模板项目VSTO项目。

Now Once I save the template project for teh initial time and do some changes in it and then I click on the close button [X], Excel does not prompt me 现在,将模板项目保存为初始时间并对其进行一些更改,然后单击关闭按钮[X],Excel不会提示我

Do you want to save the changes you made to "some.xlsx" 是否要保存对“ some.xlsx”所做的更改

But from the next time onwards, it does so(ie if I close the template project and open it again and do some changes, the Message appears). 但是从下一次开始,它就会这样做(即,如果我关闭模板项目,然后再次打开它并进行一些更改,则会出现消息)。

What is wrong? 怎么了?

Thanks 谢谢

I forgot to put 我忘了放

Application.DisplayAlerts = True

That's the fix. 就是这样。

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM