Home |
Search |
Today's Posts |
|
#1
|
|||
|
|||
Fixed the Run-time error 5980!! (Or at least I think I did!)
I'm using Word2003 on XP, therefore I had to tweak the AutoOpen and AutoClose macros in order for it to work as it should without popping any bug report! Nop, it doesn't give me any Run-time error 5980 anymore! YAY! Sharing the codes below... Please note I was just a lucky beginner! Good Luck! Sub AutoOpen() ' This macro will reassign the ENTER key when you open an existing ' Word form fields document. CustomizationContext = ActiveDocument.AttachedTemplate ' Bind the Enter key to the EnterKeyMacro. KeyBindings.Key BuildKeyCode(wdKeyReturn) End Sub Sub AutoClose() CustomizationContext = ActiveDocument.AttachedTemplate FindKey(KeyCode:=BuildKeyCode(wdKeyReturn)).Execut e ' Disables prompt to save template changes. Templates(1).Save End Sub Margaritta |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
The WordPerfect "Reveal Codes" method is so much easier to use. | Microsoft Word Help | |||
Making Word do something that Wordperfect can do | New Users | |||
WordPerfect keyboard macro>Word equivalent? | New Users | |||
letters - ask/fillin | New Users | |||
how can you create quickwords in MS Office Word 2003 | Microsoft Word Help |