Could you insert the order number as a field which references a document
variable then user the macro to update that variable?
You can temporarily unset and reset the document protection with a macro.
To preserve the current values of the form fields, you may have to make
their current values the defaults before unprotecting the doc.
The best time to unprotect a form is before it holds any user data.
Eddie
> *From:* stuck4once
> *Date:* Wed, 25 Jul 2007 06:56:07 -0700
>
> can someone please help me on this:
>
> I have created a form, that needs to be protected to enable to form field
> settings to work and so that none of the other text can be deleted.
> In this form I have created a click button macro so that when it is
> pressed it automatically creates a "Order Number" and saves this document
> as that order number. The problem I am having is that when the document
> is protected to enable the form field settings that macro won't work, is
> there something that I am missing?
>
> A fast response on this will be greatly appreciate :-)
>
> Many thanks
>
> Arran
>