Saya ingin mengganti label di footer. Ini berfungsi tetapi penggantiannya menghapus garis horizontal di atas teks footer. Bagaimana cara mengganti label tanpa menghapus garis horizontal? Bagaimana cara menggambar garis di footer?
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