EMONTES149
New Member
- Joined
- Dec 20, 2016
- Messages
- 8
The code I am using runs great the first time. When I run it again I get the:
"Run-Time error '462':
The remote server machine does not exist or is unavailable"
I stop the code, run it again and it works fine. It seems to occur every other time I run the code.
I do have the variable defined:
Dim lngJunk As Long
The error is on this line:
lngJunk = ActiveDocument.Sections(1).Headers(1).Range.StoryType.
My code is to find and replace footer text in all sub documents.
"Run-Time error '462':
The remote server machine does not exist or is unavailable"
I stop the code, run it again and it works fine. It seems to occur every other time I run the code.
I do have the variable defined:
Dim lngJunk As Long
The error is on this line:
lngJunk = ActiveDocument.Sections(1).Headers(1).Range.StoryType.
My code is to find and replace footer text in all sub documents.