I'm programing a Word Template with a UserForm and I need check if all the docVatiables created in the teplate exist in the new file yet.
I created the attached code to list all Fields in the file and it is working but if I delete some docVariables in the file, this code find the same list.
I'm searching some code in the web but can't found.
Someone know how check the real list of docVariables?
For Each Field In ActiveDocument.Variables
ListField = ListField & vbCrLf & Field.Name