07 2012 档案
摘要:以下代码是一个VBA Form中的,用来迭代CustomXmlDocument。Private Sub TreeView1_BeforeLabelEdit(Cancel As Integer)End SubPrivate Sub UserForm_Activate() Dim oCustXML...
阅读全文
摘要:有用户咨询一下问题:Sub edtMastr() Dim strNewFoot As String strNewFoot = InputBox(prompt:="Enter the revision number.", _ Title:="Revision", De...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using log4net;using System.Windows.Forms;using DocumentFormat.OpenXm...
阅读全文
摘要:这是一个根据用户需求给出的例子,用来改写“插入表格(I) ...”按钮的动作。我们可以以此引申为在Office中所有Button或CommandButton都可以用这样的方法改变动作。Ribbon Xml 内容如下: Ribbon Class 如下:using System;using...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;using log4net;using Microsoft.Office.Core...
阅读全文
摘要:环境:Windows 7 旗舰版 Visual Studio 2010、Office 2010重现步骤:在Visual Studio 2010中用C# 建立一个Outlook Add-in 项目(framework 3.5 或framework 4.0)在项目中添加一个Ribbon(Ribbon V...
阅读全文
摘要:在某些特殊场合我们可能要判断Access DataBase Engine是否安装(例如要建ODBC连接的时候)。我们可以通过检查注册表中是否有[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Microsoft.ACE.ACERCLRC.14.0]来判断Access Data...
阅读全文
摘要:在OOM(Outlook Object Module)中UserDefinedProperties看起来非常奇怪,你可以定义它,却不能给它赋值。其实UserDefinedProperties是用来建立一个用户自定义项来显示其文件夹下Item中相应的自定义值的。下面是个用来说明的小例子。using S...
阅读全文
摘要:这是一个计算Word中文档行数的例程(表格中的行数不算)。Sub test() Dim i As Integer Dim t As Table i = ActiveDocument.range.ComputeStatistics(wdStatisticLines) ...
阅读全文

浙公网安备 33010602011771号