You could do that with code like:
Code:
Sub ModifyHeader()
Application.ScreenUpdating = False
Dim Pwd As String, pState As Variant, Rng As Range, StrTxt As String
With ActiveDocument
Set Rng = .Sections(1).Headers(wdHeaderFooterPrimary).Range
Rng.End = Rng.End - 1
StrTxt = InputBox("Please input the modified header text.", "Header Update", Rng.Text)
If Trim(StrTxt) = "" Then Exit Sub
pState = False
If .ProtectionType <> wdNoProtection Then
Pwd = InputBox("Please enter the Password", "Password")
pState = .ProtectionType
.Unprotect Pwd
End If
Rng.Text = StrTxt
If pState <> wdNoProtection Then .Protect Type:=pState, NoReset:=True, Password:=Pwd
End With
Application.ScreenUpdating = True
End Sub