Brendan was telling us:
Brendan nous racontait que :
> I am not here to split hairs but your last post at 8/16/2006 1:15 PM
> PST was "show us your code" to which I replied at 8/16/2006 1:36 PM
[quoted text clipped - 12 lines]
> numerous Word Users so as not to have to create UserForms to
> accomplish what should be a simple task based on VBA code.
I am glad that I was able to help, albeit in another thread.
Never mind the "hair splitting". Like you, I hope as many people as possible
will benefit form the exchanges we have in the NG. So, all I wanted to do
was to point out that starting numerous threads on the same topic just adds
unnecessary traffic and actually makes it more difficult for people to
follow up and to search. For example, this thread is now dead as the answer
to your problem lies elsewhere. So anybody finding this will see a dead end.
For those people, I will paste the content of the last two posts from the
other thread here:
My reply:
______________________________________
As I wrote in my other reply in this thread, if you set up your template
properly, all you need is
ActiveDocument.Unprotect
Now, in your code, you are unprotecting the document.
May I ask why?
Also, you are not re-protecting it, so of course, section 1 is now
unprotected.
I have the feeling that all you want to do is send the user to the beginning
of the editable part of the document when they are done typing in the
formfields. If this is the case, then you do not need a macro.
Just protect section 1 (and not section 2) and then the cursor will
automatically go to the beginning of section 2 when they tab out of the last
field in section 1.
Now, if you really need a macro, try this:
Sub macGoToBMPropNarr()
Application.OnTime When:=Now, Name:="ReallymacGoToBMPropNarr"
End Sub
Sub ReallymacGoToBMPropNarr()
If ActiveDocument.Bookmarks.Exists("swPropNarr") Then
ActiveDocument.Bookmarks("swPropNarr").Select
End If
End Sub
It seems that without the macro to call another macro, Word will not
properly get to the bookmark.
_______________________________________
Yours:
_______________________________________
That worked perfectly. Thank you very much. I can now leave the document
protected with Section(2) unprotected. I don't know why Word did not like
simply executing the "ReallymacGoToBMPropNarr()" on its own.
_______________________________________
My final thought:
Do you really need VBA for this? Is the bookmark deep in section two or
right near the top of page 2? If the latter, VBA is not really necessary,
unless you have user that easily mess things up!

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org