I have changed this code line. The new error I get is "Compile error: Invalid use of property" for this line:
ActiveDocument.Tables.Count (found under " 'For each table in current document ")
Thanks for the macro security links. I read the MS article and it helped. I'll read the rest later.

