Macro in Text Form Field

D

Debra Ann

I am working in Microsoft Office 2003 ...

I have a form where the first section is protected and has form fields and
the second section is not protected. In the last Text Form Field, I attached
a "run macro on exit" that states to go to a bookmark. The macro does not
initiate. Any ideas why?

Selection.GoTo What:=wdGoToBookmark, Name:="FieldList"
With ActiveDocument.Bookmarks
.DefaultSorting = wdSortByName
.ShowHidden = False
End With

Thanks.
 
C

Cindy M.

Hi =?Utf-8?B?RGVicmEgQW5u?=,
I am working in Microsoft Office 2003 ...

I have a form where the first section is protected and has form fields and
the second section is not protected. In the last Text Form Field, I attached
a "run macro on exit" that states to go to a bookmark. The macro does not
initiate. Any ideas why?

Selection.GoTo What:=wdGoToBookmark, Name:="FieldList"
With ActiveDocument.Bookmarks
.DefaultSorting = wdSortByName
.ShowHidden = False
End With
You're certain it's not called? Did you put a breakpoint in the macro so you can
be sure?

Is the form protected? OnExit and OnEnter only execute in a protected form?

Are you sure the procedure name matches the macro name selected in the
Properties dialog box?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top