Calculate sequential number in a protected form.

G

gtc@idl

I have a protected form that users will fill in fields and then save it under
a new name. This form replaces a 7 part carbon form that is sequentially
numbered.
I am looking for information on how to have the form open with the next
number each time it is accessed. Any help would be greatly appreciated.
 
G

Graham Mayor

See also http://www.gmayor.com/automatic_numbering_documents.htm. The macros
may be used as presented with a protected form, if saved in the form
template and new documents are created from it. You will need to add a
toolbar/qat buttons to the template to run the SaveCertificateAs and
ResetStartNo macros and add your form password to the line
Const sPassword As String = "" 'The password to edit the form
and set any leading text before the number in the line

Const sText As String = "Certificate No. "

If you want to change the save name and save path then do so at



..Name = "Certificate " _
& Format(oVars("varSaveNo"), _
sFormat)
..Show

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top