Hello all-
I'm trying to replace the footer information in Word with this (see below) and I receive this error: compile error: user-defined type not defined. Any help would be appreciated!
'Replace the footer info
Dim oSection As Word.Section
Dim oRange As Word.Range
Dim Var
For Each oSection In WrdDoc.Sections()
Set oRange = oSection.Footers(Var).Range
oRange.Find.Execute FindText:="[CDAREPDATE]"
Set oRange = Nothing
Next
Next
I'm trying to replace the footer information in Word with this (see below) and I receive this error: compile error: user-defined type not defined. Any help would be appreciated!
'Replace the footer info
Dim oSection As Word.Section
Dim oRange As Word.Range
Dim Var
For Each oSection In WrdDoc.Sections()
Set oRange = oSection.Footers(Var).Range
oRange.Find.Execute FindText:="[CDAREPDATE]"
Set oRange = Nothing
Next
Next