JP53
asked on
Automated Word 2003 Forms using VBA
I'm new to Word Forms so I'm testing out a Word 2003 Form with a few checboxes on it (bkCheck1; bkCheck2, bkCheck2). I've put a Macro on the form that triggers on exit from bkCheck1. The Macro is below and is just a test, so I've made it as simple as I could but it doesn't work. I've locked the form before testing, made sure the MS Office Word 11 Object library has been loaded, enabled Macros and checked the Macro is hooked onto the document. Nothing
Sub Macro1()
ActiveDocument.Bookmarks(" bkCheck3") .Select
MsgBox ("Check1 checked")
End Sub
Sub Macro1()
ActiveDocument.Bookmarks("
MsgBox ("Check1 checked")
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi GrahamSkan,
Already sorted. It seems that the on exit field method reacts in weird ways with Word Forms.
Thanks anyway for the input
J
Already sorted. It seems that the on exit field method reacts in weird ways with Word Forms.
Thanks anyway for the input
J
The first line should either give an error message and/or carry on to produce the programmed message : - "Check1 checked"
What mechanism are you using to start the macro code?