Example #1
0
 public void RunAutoMacros(XlRunAutoMacro which)
 {
     throw new NotImplementedException();
 }
 public void RunAutoMacros(XlRunAutoMacro which)
 {
     throw new NotImplementedException();
 }
        /// <summary>运行附属于指定工作簿的 Auto_Open、Auto_Close、Auto_Activate 或 Auto_Deactivate 宏。保留本方法是为了保持向后兼容性。在新的 Visual Basic 代码中,应使用 Open、Close、Activate 和 Deactivate 事件取代上述宏。
        /// </summary>
        /// <param name="Which">指定要运行的自动宏。</param>
        public void RunAutoMacros(XlRunAutoMacro Which)
        {
            _objaParameters = new object[1] { Which };

            _objWorkbook.GetType().InvokeMember("RunAutoMacros", BindingFlags.InvokeMethod, null, _objWorkbook, _objaParameters);
        }