The download should match the code soon -- in the meantime, it's an easy fix. Just add the declarative statements for the two document variables:
Dim docSource As Document
Dim docNew As Document
Or, comment out the Option Explicit statement at the top of the module, but I don't recommend you do that -- unless you're just experimenting with the code.
Discussion on:
Message 9 of 13

































