Home |
Search |
Today's Posts |
|
#1
|
|||
|
|||
Dear Suzanne,
I was able to resolve the "bug" issue. It appears the bug was just in the first template I created which ran the macro. It is working fine now. Thanks!! Dave "Suzanne S. Barnhill" wrote: See €œWD: How to Code ENTER Key to Move to Next Field in Form€ http://support.microsoft.com?kbid=211219 -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "daveocampo" wrote in message ... Hi, I created a Word document template (.dot) with Form Fields, then I saved the template in Protected mode and restrict the user to only allow Filling-In the Forms Fields; however, if the user hits the Enter key, the form will generate a line break and distort the standardized document template. Is there a macro or function in Word to disable the Enter key in a .dot form field? If not, maybe MS Offfice Development Team can add this feature to the Form Field Propeties dialog box. Thanks! David |
#2
|
|||
|
|||
Hi Dave,
I was wondering how you solve the "bug" issue... This is really frustrating... Please help! The Macro works well until I password protect my form... that's when the Runtime error 5980 shows up! Thank you in advance for any light!... Marg Quote:
|
#3
|
|||
|
|||
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 |