View Single Post
  #5   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?B?SmFja19GZWVtYW4=?=,

Its 2003. I used the control toolbox checkbox first, then read of all the
trouble of getting hyperlinks to run in a protected form, so when I saw the
run macro on Entry, I thought my problems were solved. On Entry sure looked
like it meant on entry (clicking the checkbox).

My Word VBA is very limited, so inserting the toolbox checkbox control into
the document, double clicking it to bring up the editor, and inserting

..(and
I jave no idea what to add)..... into the code will do it? Or do I also have
to use section breaks to separate it from the protected parts of the

document?

Controls from the Control toolbox work in protected sections, as long as
they're formatted to be in line with the text (no graphical textwrap
formatting). So no need to include a section break just for that :-)

Now for the return trip, anyone know how to code a command button to return
the user to the last point of reference on click.

I'd have the code that "jumps" note the calling location in a document
Variable (ActiveDocument.Variables("name") = "info"). Then the code to "jump
back" reads that variable and moves to that location.

Since you're mixing form field and ActiveX controls, you'll probably need to
store whether the point of origin is a form field or an ActiveX control. To
get an ActiveX control you need to query the InlineShapes collection. And, in
this case I'd place a bookmark AROUND that control so that you can do
something like this
ActiveDocument.Bookmarks("Checkbox").Range.InlineS hapes(1).Select

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :-)