Hi Mike,
I don't see anything in the macro that looks wrong (I should hope not,
but I've occasionally seen code in a KB article that overlooked some
possible condition). It's time to go into debugging mode.
Between the lines
strPath = dlgTemplate.Template
If LCase(Left(strPath, nServer)) = LCase(OldServer) Then
add these lines:
MsgBox "Doc: " & strFileName & vbCr & _
"Template: " & Left(strPath, nServer) & vbCr & _
"OldServer: " & OldServer
Run the macro again. As each message box appears, compare the
"Template" value to the "OldServer" value. If they're different (not
counting upper/lower case), that would explain why the Normal.dot
template isn't being attached. Look for unexpected spaces, transposed
letters, confusion of zero for oh or one for ell, different
punctuation, etc.
If you see the problem early on, you don't have to continue to the end
of the folder. Press Ctrl+Break to stop the macro.
--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.