View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
D D is offline
external usenet poster
 
Posts: 28
Default MacroButton field doesn't start macro

The document is a prtotected Word form (which users fill in), 10 pages long,
and I want to jump from the bottom of each page back to the first page (the
contents page) and also from the first page to each of the other pages.

I am not used to writing macros, so I'm not quite sure what to do with the
information you've so kindly given me???

Many, many thanks for replying.

"Graham Mayor" wrote:

What's the macrobutton field for? An autonew macro in the form template will
take you to any form field in the document of your choice eg

Sub AutoNew()
Selection.GoTo What:=wdGoToBookmark, Name:="Text2"
End Sub

will go to the form field Text2


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


D wrote:
I have a text field at the beginning of a Word document which I have
bookmarked. I have recorded a macro using 'Edit-go to' to jump to
the field. The macro works when I run it fromt the tools-macro menu.

However, when I create a MacroButton field {macroButton
GoToContentsPage double-click here}, protect the form, and then
double click, the cursor jumps to what appears to be a random field
(it has a bookmark, but nothing like the GoToContentsPage one).

I am baffled - can anyone suggest what I might be doing wrong?

Many thanks
D