Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2006

Tip: Looking for answers? Try searching our database.

Enter key mapping

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark Kaynor - 04 Sep 2003 15:17 GMT
I create a new template, insert the code KB Article
187985 - "how to code the enter key to move to next field
in protected form"
(http://support.microsoft.com/default.aspx?scid=KB;en-
us;q187985). This is the only code in my test template. I
then inserted a few form fields, and it all seems to work
correctly and I can exit w/o error.

I then create a new section for "free form" text that
isn't protected - protect the template selecting Forms /
Sections, and select section 1 where the form fields are.
I then unprotect and save the template.

When I create a new document, the enter key moves between
the fields as expected, and I can move the cursor to the
unprotected section and type in text.

When I close Word a runtime error 5852 - Requested Object
Is Not Available.

Any thoughts as to why this would be occurring? Thanks.

Mark Kaynor
Mark Kaynor - 04 Sep 2003 16:35 GMT
Forgot to mention - Word 2000 on Win2K. I just did some
more testing. When I close the document, it all seems to
be working fine. The error occurs when I close Word.

The error occurs on a new test template w/o no sections -
just 3 form fields and the VBA module created from the KB
article mentioned below.

Any suggestions greatly appreciated.

>-----Original Message-----
>I create a new template, insert the code KB Article
[quoted text clipped - 22 lines]
>
>.
Word Heretic - 05 Sep 2003 23:33 GMT
G'day "Mark Kaynor" <mark@xsystems.com>,

need to see your doc close code.

"Mark Kaynor" <mark@xsystems.com> was spinning this yarn:

>Forgot to mention - Word 2000 on Win2K. I just did some
>more testing. When I close the document, it all seems to
[quoted text clipped - 32 lines]
>>
>>.

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email       steve@wordheretic.com  
Products    http://www.geocities.com/word_heretic/products.html

Replies offlist may require payment.
Doug Robbins - Word MVP - 05 Sep 2003 03:03 GMT
Hi Mark,

If you click on debug, what line of code is highlighted?

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested.  Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
> I create a new template, insert the code KB Article
> 187985 - "how to code the enter key to move to next field
[quoted text clipped - 19 lines]
>
> Mark Kaynor
Mark Kaynor - 05 Sep 2003 13:41 GMT
Doug,

The Debug button is greyed out. I've tried setting
breakpoints and stepping through to the error, but it
occurs after the document is closed, as Word itself is
closing.

Mark

>-----Original Message-----
>Hi Mark,
[quoted text clipped - 32 lines]
>
>.
Mark Kaynor - 05 Sep 2003 14:06 GMT
Doug,

Some more info - when I remark out the line

"CustomizationContext = ActiveDocument.AttachedTemplate"

in each of the three auto macros the error doesn't occur.
Of course, the key remapping no longer works, too, but at
least the error goes away.

Mark

>-----Original Message-----
>Hi Mark,
[quoted text clipped - 32 lines]
>
>.
Mark Kaynor - 08 Sep 2003 13:45 GMT
Found the problem - Adobe Acrobat. Now I guess it's off to
Adobe support.

>-----Original Message-----
>I create a new template, insert the code KB Article
[quoted text clipped - 22 lines]
>
>.
Lumpjaw - 18 Sep 2006 22:55 GMT
Hello all,

I am working on a project where I get user information via a Word  
userform.  This form then opens several other Word forms, one at a time  
and writes some data, saves and closes.  Is there a way to speed up the  
process by not having every form open then write and then close?  I am  
doing this with about a dozen forms right now.  Thanks for the tip.

-Lumpjaw

Signature

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.