Results 1 to 1 of 1

Thread: Autotext merged from table

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Posts
    91

    Autotext merged from table

    Is there a way to save autotext NAMES to a database (Access) table, and merge them later.
    Let say i have in Word an Autotext
    { Autotext Inhoud1 }

    So this Autotext's name is Inhoud1
    This Autotext i defnied earlier and contains text and images!
    Now i have in my Word document a table (24 cells) and the tablecells contains each a merged field with an Access table, the mergefield i want to contain a autotextname like Inhoud1.
    So When i generate the merge so choose 'Merge to new document' the autotextnames are filled in and i get a real autotext in the cells.
    Is this possible, i for now only get the text Inhoud1 in the cells and not a real autotext.
    Don't ask way i nead this, just need this method to work, so the tablecells are filled with the autotexts very fast!

    Some added info
    -Solution1 might be making a nested Autotext
    LayoutName is my access table field
    {Autotext {Mergefield LayoutName}}
    Only this doesn't work. After Merge to new document, i get nothing, probably
    word tries to do the Autotext befor the Mergefield is filled in so he won't recognise the autotext.
    But maybe stalling the autotext replacing can make this work but don't know how.

    -Solution2 is a Mergfield in a field with no name
    and adding the text 'Autotext' afterwords.
    I put a = char because something has to be filled in apperently
    So i have:
    {={{Mergefield LayoutName}}
    This works and the MergeField is filled in and i get this as result after Merging to new document
    Where Layout1 is the table field content which is correct and there does exist an autotext Layout1
    {="Layout1"}
    Now i only need to replace the = with the text 'Autotext'
    I can do that with the find and replace function
    so i get
    {Autotext "Layout1"}
    Only one problem the autotext isn't yet updated so when i now click ALT-F9
    i get syntax error, i now update one field with the shortmenu and choose update. Now my autotext does work. So i still have to find a way to update all fields at once through code,
    i suppuse a lot of this can be improved, all help very welcome.
    Last edited by lvermeersch; Apr 8th, 2006 at 02:23 PM.

Posting Permissions

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



Click Here to Expand Forum to Full Width