View Single Post
 
Old 08-18-2014, 07:15 PM
Byron Polk Byron Polk is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Jul 2014
Location: Whitehouse, TX
Posts: 14
Byron Polk is on a distinguished road
Default

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
Reply With Quote