我的知识记录

word文档属性怎么修改(图文)

Word文档属性包括内置属性和自定义属性,可以通过以下几种方式修改:

方法一:通过Word界面修改

1. 修改标准属性

  • 打开Word文档
  • 点击 文件(File) → 信息(Info)
  • 在右侧可以看到文档属性
  • 点击属性区域右侧的下拉箭头,选择 显示所有属性(Show All Properties)
  • 可以直接编辑标题、主题、作者、经理、公司、类别等属性

2. 通过属性面板修改

  • 点击 文件(File) → 信息(Info)
  • 点击右侧属性区域的 属性(Properties) 下拉菜单
  • 选择 高级属性(Advanced Properties)
  • 在弹出的对话框中可以修改多个标签页的内容:
    • 常规(General): 查看基本统计信息
    • 摘要(Summary): 修改标题、主题、作者、经理、公司、分类等
    • 统计(Statistics): 查看创建时间、修改时间等(通常不能直接编辑)
    • 内容(Content): 添加自定义属性

方法二:使用VBA宏修改


 
vba
Sub ModifyDocumentProperties() ' 修改内置属性 With ActiveDocument.BuiltInDocumentProperties .Item("Title").Value = "新标题" .Item("Author").Value = "新作者" .Item("Company").Value = "新公司" .Item("Subject").Value = "新主题" .Item("Category").Value = "新分类" .Item("Keywords").Value = "关键词1, 关键词2" End With ' 添加或修改自定义属性 Dim prop As DocumentProperty On Error Resume Next Set prop = ActiveDocument.CustomDocumentProperties.Add _ (Name:="项目编号", LinkToContent:=False, Type:=msoPropertyTypeText, Value:="PRJ001") End Sub

方法三:使用编程语言修改

Python (使用python-docx库)


 
python
from docx import Document from docx.core.properties import CoreProperties # 打开文档 doc = Document('document.docx') # 修改核心属性 doc.core_properties.title = "新标题" doc.core_properties.author = "新作者" doc.core_properties.subject = "新主题" doc.core_properties.creator = "创建者" doc.core_properties.company = "公司名称" doc.core_properties.category = "分类" doc.core_properties.keywords = "关键词1, 关键词2" doc.core_properties.description = "文档描述" # 保存文档 doc.save('document.docx')

C# (使用Open XML SDK)


 
csharp
using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.CustomProperties; using DocumentFormat.OpenXml.ExtendedProperties; // 打开文档 using (WordprocessingDocument doc = WordprocessingDocument.Open("document.docx", true)) { // 获取核心文件属性 var coreProps = doc.CoreFilePropertiesPart; // 修改属性(需要通过包属性访问) doc.PackageProperties.Title = "新标题"; doc.PackageProperties.Creator = "新作者"; doc.PackageProperties.Subject = "新主题"; doc.PackageProperties.Company = "公司名称"; doc.PackageProperties.Category = "分类"; doc.PackageProperties.Keywords = "关键词1, 关键词2"; }

可修改的主要属性包括:

  1. 标题(Title) - 文档的标题
  2. 主题(Subject) - 文档的主题
  3. 作者(Author) - 文档的作者
  4. 经理(Manager) - 经理信息
  5. 公司(Company) - 公司名称
  6. 分类(Category) - 文档分类
  7. 关键字(Keywords) - 搜索关键字
  8. 备注(Comments) - 备注信息
  9. 自定义属性 - 用户自定义的各种属性
注意事项:
  • 某些属性如创建时间、修改时间通常是自动维护的
  • 不同版本的Word界面可能略有差异
  • 自定义属性可以根据具体需求添加
  • 修改后记得保存文档才能生效

word文档属性怎么修改(图文)

标签:

更新时间:2025-12-18 13:38:39

上一篇:文件属性里的日期怎么设置(图文)

下一篇:文件修改日期怎么改成想要的日期(图文)