Office中国论坛/Access中国论坛
标题:
【转载】VSTO Check Cell is In Edit Mode or Not
[打印本页]
作者:
faunus
时间:
2014-3-25 22:47
标题:
【转载】VSTO Check Cell is In Edit Mode or Not
private bool isInCellEditingMode()
{
bool flag = false;
try
{
app.DisplayAlerts = false; //This will throw an Exception if Excel is in Cell Editing Mode
}
catch (Exception)
{
flag = true;
}
return flag;
}
复制代码
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/)
Powered by Discuz! X3.3