1. เปิดเอกสารที่มีข้อคิดเห็นซึ่งคุณต้องการแปลงเป็นเชิงอรรถท้ายหน้าหรือเชิงอรรถท้ายเรื่อง จากนั้นกดปุ่ม Alt+F11 เพื่อเปิด หน้าต่าง Microsoft Visual Basic for Applications
2. ในหน้าต่าง Microsoft Visual Basic for Applications ให้คลิก Insert > Module จากนั้นคัดลอกโค้ด VBA ด้านล่างนี้ไปวางในหน้าต่าง Module
โค้ด VBA: แปลงข้อคิดเห็นเป็นเชิงอรรถท้ายหน้า:
Sub ConvertCommentsToFootnotes()
Dim xComm As Comment
Dim xCommRange As Range
Dim xDoc As Document
Application.ScreenUpdating = False
Set xDoc = ActiveDocument
For Each xComm In xDoc.Comments
Set xCommRange = xComm.Range
xDoc.Footnotes.Add xComm.Scope, , xCommRange.Text
xComm.Delete
Next
Application.ScreenUpdating = True
End Sub
โค้ด VBA: แปลงข้อคิดเห็นเป็นเชิงอรรถท้ายเรื่อง:
Sub ConvertCommentsToEndnotes()
Dim xComm As Comment
Dim xCommRange As Range
Dim xDoc As Document
Application.ScreenUpdating = False
Set xDoc = ActiveDocument
For Each xComm In xDoc.Comments
Set xCommRange = xComm.Range
xDoc.Endnotes.Add xComm.Scope, , xCommRange.Text
xComm.Delete
Next
Application.ScreenUpdating = True
End Sub
ทำได้มากขึ้นในเวลาน้อยลงด้วย Kutools for Word ที่เสริมพลังด้วย AI
Kutools for Word ไม่ได้เป็นเพียงชุดเครื่องมือ แต่เป็นโซลูชันอัจฉริยะที่ออกแบบมาเพื่อเพิ่มผลิตภาพของคุณ ด้วยความสามารถที่ขับเคลื่อนด้วย AI และคุณสมบัติที่สำคัญที่สุด Kutools ช่วยให้คุณทำงานได้มากขึ้นในเวลาน้อยลง: