Everything works fine and the data get populated.
I have a header in the template which is represents one of the fields in the
excel sheet. The header shows the correct linked value for the first 10 pages
but then on shows the variable name instead of the value. I have no idea why
it does that?
can someone help
The code is as follows:
For iCurrentRow = 1 To iLastRow
If ActiveSheet.Range("B" & iCurrentRow) <> "" Then
sFindText = ActiveSheet.Range("Q" & iCurrentRow)
sReplaceText = ActiveSheet.Range("B" & iCurrentRow)
'FindReplace sFindText, sReplaceText, objWord.Selection
End If
Next iCurrentRow
--
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"Roy" <R...@discussions.microsoft.com> wrote in message
news:49C543CD-ECA4-4A63...@microsoft.com...