T
tomcat
Hi, I am looking for a way to delete all AutoCorrect entries from a Word
2000 or XP installation.
I have written the following code:
=========================================
Sub DeleteACentries ()
Dim lngACcorrect as Long
lngACcorrect = Application.AutoCorrect.Entries.Count
For I = 1 To lngACcorrect
Application.AutoCorrect.Entries(I).Delete
Next I
Application.ScreenUpdating = True
MsgBox ("Ready!")
End Sub
==========================================
The "For" loop executes several times without errors, but stops after
exactly half of the total number of entries (the value of lngACcorrect),
with the following error message:
"5941 Requested member of collection does not exist."
What am I doing wrong? Why does the process keep stopping halfway? Does
the problem have to do with the existence of columns in the AC list? How
can I overcome the problem?
Kind regards.
AND
2000 or XP installation.
I have written the following code:
=========================================
Sub DeleteACentries ()
Dim lngACcorrect as Long
lngACcorrect = Application.AutoCorrect.Entries.Count
For I = 1 To lngACcorrect
Application.AutoCorrect.Entries(I).Delete
Next I
Application.ScreenUpdating = True
MsgBox ("Ready!")
End Sub
==========================================
The "For" loop executes several times without errors, but stops after
exactly half of the total number of entries (the value of lngACcorrect),
with the following error message:
"5941 Requested member of collection does not exist."
What am I doing wrong? Why does the process keep stopping halfway? Does
the problem have to do with the existence of columns in the AC list? How
can I overcome the problem?
Kind regards.
AND