移除Word中的Field Code

本文介绍如何在Microsoft Word中移除所有FieldCodes,包括通过批量操作移除整个文档中的FieldCodes,以及使用VBA宏移除特定FieldCode(如文本值为=SRS_034的情况)。这对于准备电子文稿提交至关重要。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

如果你不了解Field code是啥子东东,就不要往下看了,这是一个很少用到的技术。

移出所有的Field Code:

ZZ自http://www.adeptscience.co.uk/kb/article/6D96

Many publishers require that you remove ALL field codes before submitting an electronic manuscript.  Field codes are used in Microsoft Word to link your citations to your bibliographic references.
Make sure you remove hidden codes in a copy of your final manuscript.  Please note that once you remove all hidden codes, you can no longer reformat or unformat the citations or bibliography so always make a copy of your document prior to removing any codes.
1. Make a copy of the final manuscript.  From the File menu in Word, select the Save As command.  Give the file a new name.
2. In the new file, go to the Edit menu and choose Select All.
3. Press Ctrl+Shift+F9 or Cmd+6 to unlink all fields.  Your in-text citations and bibliography become regular text, without field codes or any hidden links.
If you want to do further editing or change citations in any way, make the changes to the original file.  When you are ready to submit your manuscript, make another copy of the original file to unlink field codes.

移除特定的Field Code(text值为" = SRS_034 "):

Sub RemoveFieldCode()
'
' RemoveFieldCode Macro
' Macro created 2006-12-6 by Axalto
'
Dim app As Application
Dim doc As Document
Set doc = ActiveDocument
Dim i As Integer
i = 1
While doc.Fields.Count > i
    If doc.Fields.Item(i).Code.Text = " = SRS_034 " Then
        doc.Fields.Item(i).Unlink
    Else
        i = i + 1
    End If
Wend
End Sub

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值