Results 1 to 6 of 6
  1. #1
    Star Lounger
    Join Date
    Mar 2002
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Autotext forms within doc (2000)

    <img src=/S/doctor.gif border=0 alt=doctor width=25 height=33> It's me again - coming to the "docs" that make my docs look like I really know what I'm doing! <img src=/S/bananas.gif border=0 alt=bananas width=33 height=35>

    I created a form and entered it into Autotext. When I insert that autotext entry into my 250 page WORD doc I want the form structure to be functional but only within the form itself. I want to insert this form every 5-10 pages within the doc.

    Problem 1) after inserting form, I can't insert a section break above or below it (one solution I thought might help) and the preceding and continuing doc does not "act" as it did without the form.

    Problem 2) I can only copy the form into autotext when it is unlocked. That may be the problem. Is there a way to lock the form and then capture it for an autotext entry?

    I leave my major (perhaps your minor) problem with you.....thanks! <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Autotext forms within doc (2000)

    Although I'm not quite sure what your "form" consists of, why don't you add a continuous section break before and after it, & then make the whole thing an autotext entry?

    When a form is locked, many features, including adding to autotext are not available. So far as I know, you cannot add a protected section into a document by an autotext entry. You would need a macro that would enter the autotext & then lock the document. I don't even know if that's possible, because you would not know which section had to be protected.

    If by "the preceding and continuing doc does not "act" as it did without the form", you mean that you couldn't edit it because you protected the entire document, that is correct. Once you protect a document, you can only enter text into form fields. You can protect selected sections, however.
    Hope this helps.

  3. #3
    Star Lounger
    Join Date
    Mar 2002
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Autotext forms within doc (2000)

    Phil - your comment about a macro led me to create a macro that inserts the locked form into the manuscript which perfectly meets our design needs.

    Months ago I created a macro for a doc and then tried to pass it along to other users by e-mailing them the doc and the macro didn't come with the doc.

    My company does not have MS software networked. Each computer is loaded from the CD with MS software.

    What's the best way to transfer this Macro to individual computers? Do I have to go to each persons' computer and recreate the macro or can I attach it so it travels with the form?
    <img src=/S/confused.gif border=0 alt=confused width=15 height=20>

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Autotext forms within doc (2000)

    If you save the macro with the form, I would save the "form" as a template. Send them the template. If they place the template in the startup folder, the macro will be available to everyone. If it calls an autotext entry, you can't save autotext in a document; it must be in a template.

    Hope this helps.

  5. #5
    Star Lounger
    Join Date
    Mar 2002
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Autotext forms within doc (2000)

    Phil!

    We are soooooooooo close but..... <img src=/S/dizzy.gif border=0 alt=dizzy width=15 height=15> I thought I had that macro down but it doesn't protect the form.

    So here's the current scenario - I have the form in a separate document and apparently I don't know how to create a macro and insert it into my 300 page doc.

    Here's what I did...I unprotected the form in the sep doc. I then tried to create a macro (assigned to a keyboard shortcut) using CtrlA, CtrlC, lock icon and Ctrl V. I don't know keyboard command for locking a form and research informed me macro doesn't recognize the cursor clicking on the lock icon on the forms toolbar.

    Question: How do I execute this macro AND how do I attach it to several different documents?

    I don't use macros often and have never tried to insert a form randomly in a Word doc. Thanks for your help, I do very much appreciate it.

  6. #6
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Autotext forms within doc (2000)

    I don't know how close we really are. I'm not a VBA expert, and as I said in my first post, I'm not sure a macro will work. Without a macro, you insert your autotext, go to Tools/Protect Document.../Forms & then lock only certain sections in the document. Since your inserting them randomly, I don't know how Word would know the section number to protect, and which to unprotect. You might ask over in the VBA lounge whether it is possible to have a macro that inserts an autotext entry that starts & ends with a continuous section break, & then determine which section was just added & protect it. I don't know whether you must first unprotect the document, then reprotect the same sections plus the new one.

    If it is possible, I don't think you want this macro attached to documents. You want it attached to a global template or add-in or to a template that is designed for just this type of document. That way, the macro is available whenever you need it. It would be inefficient to keep adding the same macro to individual documents when you needed it.

    Hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •