Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 07-25-2014, 10:16 PM
macropod's Avatar
macropod macropod is offline code to run once only Windows 7 32bit code to run once only Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,342
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by gerrymac View Post
I am not really sure sure what you mean "resides in the template".
Do you not understand the difference between a document and a template? That difference is a fundamental one in Word! See: http://wordprocessing.about.com/od/u...blwordtemp.htm

It seems you're trying to create something like an invoicing system, where each new document is allocated a number that stays with that document for life. For that, see, for example:
https://www.msofficeforums.com/word/...html#post19265
and:
https://www.msofficeforums.com/word/...html#post34444
and:
https://www.msofficeforums.com/word/...html#post34511
Note that the attachment in the second & third links show how to implement the code using a template (all three links are to parts of the same thread).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
code to run once only Need Help with Below Code rsrasc Word VBA 6 04-01-2014 03:42 PM
code to run once only Where does my code go? rbaldwin Word VBA 3 03-14-2012 02:31 PM
code to run once only vbc code rajpeter Excel Programming 2 09-13-2011 02:29 PM
vba code in excel rajpeter Excel Programming 5 09-11-2011 06:13 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:23 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft