C
Carny
I've created a word document as a form and have several fields people can
complete, one of them is a box with a number 1. before the field and when you
enter data in the field and press return it creates a numbered list. I want
to stop this happening. The form is password protected I've added some code
that is run when the form is opened.
Dim show As Boolean
show = False
ActiveDocument.Unprotect Password:="*********"
ActiveDocument.Application.Options.AutoFormatAsYouTypeApplyNumberedLists =
False
ActiveDocument.Protect Password:="********", Noreset:=True,
Type:=wdAllowOnlyFormFields
show =
ActiveDocument.Application.Options.AutoFormatAsYouTypeApplyNumberedLists
If show Then
MsgBox ("The Autoformat is off!")
Else
MsgBox ("The Autoformat is still on!!")
End If
But i always get the message that the autoformat in on and the document
always creates a numbered list. The form is opened in various word versions
from 97 upward. Please help???
complete, one of them is a box with a number 1. before the field and when you
enter data in the field and press return it creates a numbered list. I want
to stop this happening. The form is password protected I've added some code
that is run when the form is opened.
Dim show As Boolean
show = False
ActiveDocument.Unprotect Password:="*********"
ActiveDocument.Application.Options.AutoFormatAsYouTypeApplyNumberedLists =
False
ActiveDocument.Protect Password:="********", Noreset:=True,
Type:=wdAllowOnlyFormFields
show =
ActiveDocument.Application.Options.AutoFormatAsYouTypeApplyNumberedLists
If show Then
MsgBox ("The Autoformat is off!")
Else
MsgBox ("The Autoformat is still on!!")
End If
But i always get the message that the autoformat in on and the document
always creates a numbered list. The form is opened in various word versions
from 97 upward. Please help???