这个错误“Value does notfall within the expected range ”在网上有很多种解释,但是都不能解决我遇到的问题。google能搜到一些具体的解决办法,但是由于国内代理的问题不能访问。当我想往一个Excel里加入一个CuntomTaskPane的时候(Globals.ThisAddIn.CustomTaskPanes.Add(control,title,window);)就会出现上诉问题,但是此方法在word里加入一个CustomTaskPane的时候是OK的。因为在word里可以很明确的找到window,通过Globals.ThisAddIn.Application.ActiveDocument.ActiveWindow。但是在Excel中确不容易。既然这样就直接越过这个参数。直接用2个参数的方法就能添加成功。
Value does not fall within the expected range in excel word addin HResult 2147024809
免责声明:文章转载自《Value does not fall within the expected range in excel word addin HResult 2147024809》仅用于学习参考。如对内容有疑问,请及时联系本站处理。
上篇验证 SSH Keys 是否添加成功隐藏Apache版本号下篇
宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=