设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 1987|回复: 0

【转载】VSTO Check Cell is In Edit Mode or Not

[复制链接]
发表于 2014-3-25 22:47:38 | 显示全部楼层 |阅读模式
  1. private bool isInCellEditingMode()
  2.         {
  3.             bool flag = false;
  4.             try
  5.             {
  6.                 app.DisplayAlerts = false; //This will throw an Exception if Excel is in Cell Editing Mode
  7.             }
  8.             catch (Exception)
  9.             {
  10.                 flag = true;
  11.             }
  12.             return flag;
  13.         }
复制代码


您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-3-29 23:08 , Processed in 0.081221 second(s), 25 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表