Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 07-08-2014, 03:03 AM
macropod's Avatar
macropod macropod is offline Global macro across a number of different word files Windows 7 32bit Global macro across a number of different word files Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

I assume you're using something like the solution discussed in this thread:
https://www.msofficeforums.com/word-...numbering.html
To have such macros available to all documents based on a given template (e.g. the Normal.dotm template), simply add the code to that template. I'd advise against using the Normal.dotm template for this, though, as that will impact every document you create - better to create a specific template for all the barcode documents and attach that template to them. Provided the template is stored in a location to which all users of the documents have at least read access, they'll have access to the macros as well.

The only way around manually adding the DOCVARIABLE field would be to write a macro to do it. That macro might sit in the same template as mentioned above and, once the attaching of a particular document is done, which requires opening the document, simply run the macro to add the field to the header.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
global, macro



Similar Threads
Thread Thread Starter Forum Replies Last Post
Global macro across a number of different word files Need macro to merge files in Word and preserve formatting Carolin Word VBA 3 12-14-2014 04:01 AM
Global macro across a number of different word files A macro to reveal keyboard shortcuts assigned to global template? New Daddy Word 3 12-17-2013 07:08 AM
Using macro to add variable number of rows to a protected word table Julia Word Tables 1 01-09-2013 06:04 AM
Global macro across a number of different word files How to make an add-in/global macro hanvyj Excel Programming 4 12-14-2012 03:23 AM
Merging word files from excel macro hklein Excel Programming 0 08-05-2011 02:27 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:22 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