Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hey guys,
I wrote a macro that auto-updates all fields in a word document upon opening the document. I realized that this macro is local to my computer, so other people who open the file are not having their fields auto-update. Is there a way to attach a macro to a word document so anyone who uses the document will have the macro work for them? I have tried searching for an answer for a while, but no dice. Thank you very much, UCHelp |
#2
![]() |
|||
|
|||
![]() Quote:
What I did was made sure I created the macro for that document only, and then when the Visual Basic program is launched, expanded the Microsoft Word Objects folder on the left hand side, and double-clicked "ThisDocument" then added the macro's VBA code to the window that pops up. Then I saved, then saved the document. |
#3
![]() |
|||
|
|||
![]() Quote:
Another easy way is to use the "Organizer" to assign/transfer across macros. see steps below: Porting across 'Styles' or 'Macros' from one word doc/template to another: • Open "Templates and Add-ins" dialogbox ( Developer tab - (under Template) Document Template ) • 'Organizer' button • Under 'Style' tab, 'Copy' across the Styles and under 'Macros' tab, Copy across the Macros between 2 documents / templates (shown in 2 columns) • Note: you can Open or Close word documents or templates by clicking the 'Open/Close' buttons below. Ref: Title: Word: Use the Organizer to copy macros, styles from one document to another (goto: cybertext.wordpress.com/2010/09/20/word-use-the-organizer-to-copy-macros-styles-from-one-document-to-another/ ). |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Lost document when auto update | Microsoft Word Help | |||
Auto Update SaveDate before closing document | Microsoft Word Help | |||
Can you setup auto field update? In a word 2003 document | New Users | |||
create a macro to update (save) document | Microsoft Word Help | |||
Attempting to auto-update fields in a word document | Microsoft Word Help |