From: Anthony on 13 Apr 2010 13:07 I created a template with a drop down form field. (not a UserForm) Can I retrieved the user-selected item using VBA. Anthony
From: Fumei2 via OfficeKB.com on 13 Apr 2010 14:59 ActiveDocument.FormFields("name").Result Anthony wrote: >I created a template with a drop down form field. (not a UserForm) >Can I retrieved the user-selected item using VBA. > >Anthony -- Gerry Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.aspx/word-programming/201004/1
From: Anthony on 13 Apr 2010 15:10 ActiveDocument.FormFields("myname").Result Error: Doesn't exists (Error5941) in collection I set label and titel properties to 'myname'. Anthony
From: macropod on 13 Apr 2010 19:35 Hi Anthony, Obviously, you need to change "myname" to whatever bookmark name is assigned to your formfield - see under the formfield's properties. If the formfield doesn't have a bookmark name, give it one. -- Cheers macropod [Microsoft MVP - Word] "Anthony" <Anthony(a)anti.spam.com> wrote in message news:eLiKvzz2KHA.4716(a)TK2MSFTNGP06.phx.gbl... > ActiveDocument.FormFields("myname").Result > > Error: Doesn't exists (Error5941) in collection > > I set label and titel properties to 'myname'. > > Anthony > >
From: Anthony on 14 Apr 2010 12:28 Thx. Anthony "macropod" <macropod(a)invalid.invalid> wrote in message news:O$2a2H22KHA.4752(a)TK2MSFTNGP02.phx.gbl... > Hi Anthony, > > Obviously, you need to change "myname" to whatever bookmark name is > assigned to your formfield - see under the formfield's properties. If the > formfield doesn't have a bookmark name, give it one. > > -- > Cheers > macropod > [Microsoft MVP - Word] > > > "Anthony" <Anthony(a)anti.spam.com> wrote in message > news:eLiKvzz2KHA.4716(a)TK2MSFTNGP06.phx.gbl... >> ActiveDocument.FormFields("myname").Result >> >> Error: Doesn't exists (Error5941) in collection >> >> I set label and titel properties to 'myname'. >> >> Anthony >> >> >
|
Pages: 1 Prev: Modifying SmartArt Text through Object Model Next: Conditional Dropdowns on Steroids |