Hi Paul,
Thanks for your reply.
Sorry to have taken your time. I wish you all the best for your exams.
I did try the code this morning. As promised this is the feedback.
One document 1 runs well but other document 2, I get an error message.
When I run the code I get this error message, it stops at “Call MoveTablesToNewDocument” In Code Main
Document 1
VBA error message
Run time error ‘91’:
Object variable or with block variable not set.
When I debug, I see line 17 highlighted
“If prevPar Is Nothing Or PrevPara .Start < NextEnd Then” In Code “MoveTablesToNewDocument()”.
Document 2
This document that runs the code ok. I see the text moved but the table grid still exists as empty.
Please give priority to your studies.
Thanks
FLDS
|