No, Greg, that is just old man typeo. As you figured out the property name is "RandomNumber".
I have been able to test a little farther and I have found the the
Quote:
ThisDocument.CustomDocumentProperties("RandomNumbe r").Value = lngNewRandNumber
|
line is updating the value in the property, however, when I then close the document that has been created and reopen the template file, the previous random number is still shown as the value in the "RandomNumber" property.
I have even tried adding a ThisDocument.Save to the code and that did not help.
I will give your code a try.
Can you tell me when, in relation to the Document_New procedure when the AutoNew procedure is run?
Byron