摘要:
1.VS2005 中找到C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplatesCache\CSharp\2052\Class.zip或在VS2010 中找到C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache\CSharp\Code\2052\Class.zip\Class.cs2.在Class.cs 文件中添加如下代码。/* * ==================================== 阅读全文
摘要:
1.打开菜单栏“工具”-->选择"宏"-->"Macro资源管理器"2.新建宏项目。选择"Modle1"在其中输入如下宏命令即可。Public Module HeadNote Sub DocumentFileHeader() Dim doc As Document Dim docName As String Dim companyName As String = "Your company name" Dim authorName As String = "Your name" Di 阅读全文