Hello, I am using input boxes to quickly fill out an entire document with certain fields with this code (given to me by Andrzejek-many thanks):
Sub Subcontracter()
'
' Subcontracter Macro
'Dim strSubName As String
Dim i As Integer
strSubName = InputBox("Subcontractor")
With Selection
For i = 1 To 7
.GoTo What:=wdGoToBookmark, Name:="SubContr" & i
.TypeText Text:=strSubName
Next i
End With
End Sub
The problem is I cannot bookmark footers to include the data I need. Is there any way to do this or link it to words in the document so it fills itself in?
Sub Subcontracter()
'
' Subcontracter Macro
'Dim strSubName As String
Dim i As Integer
strSubName = InputBox("Subcontractor")
With Selection
For i = 1 To 7
.GoTo What:=wdGoToBookmark, Name:="SubContr" & i
.TypeText Text:=strSubName
Next i
End With
End Sub
The problem is I cannot bookmark footers to include the data I need. Is there any way to do this or link it to words in the document so it fills itself in?