Forum Discussion
David Muth
Aug 28, 2018Copper Contributor
Visual Basic and Sequential numbers
Hello I have created Visual Basic code to create an auto number, when I run the Visual basic code, but I am trying to figure out how to run it automatically so that each time the document opens it w...
Haytham Amairah
Aug 28, 2018Silver Contributor
Hi David,
Press Alt+F11 to open the VBA editor, then select ThisDocument code module, and copy your code inside Document_Open() event as shown in the below screenshot.
Hope that helps
- David MuthAug 28, 2018Copper ContributorPerfect. Thank you