ฉันต้องการแทนที่ป้ายกำกับในส่วนท้าย ใช้งานได้ แต่การแทนที่จะลบเส้นแนวนอนเหนือข้อความส่วนท้าย ฉันจะเปลี่ยนฉลากโดยไม่ลบเส้นแนวนอนได้อย่างไร ฉันจะวาดเส้นในส่วนท้ายได้อย่างไร?
Private Sub Document_Open()
Dim unit As String
Dim footer As String
unit = "New text"
footer = ActiveDocument.Sections(1).Footers(wdHeaderFooterFirstPage).Range.Text
ActiveDocument.Sections(1).Footers(wdHeaderFooterFirstPage).Range.InlineShapes.AddHorizontalLineStandard
footer = Replace(footer, "<<Label>>", unit)
ActiveDocument.Sections(1).Footers(wdHeaderFooterFirstPage).Range.Text = footer
End Sub