+ Reply to Thread
Results 1 to 2 of 2

How to keep automatic field after using a Word macro?

  1. #1
    Registered User
    Join Date
    04-05-2017
    Location
    Toronto, Canada
    MS-Off Ver
    2007
    Posts
    1

    How to keep automatic field after using a Word macro?

    Hi everyone,

    I am having a little problem with using my macro in word.

    Background: I have tables in documents that look similar to one below. There are pictures in one row and captions in the row below it. These tables can contain up to 40-60 pictures. The "Picture #" portion of caption is an automatic field which updates if you add or remove pictures.

    Picture 1.jpg Picture 2.jpg
    Picture 1: Flowers Picture 2: Cars
    Picture 3.jpg Picture 4.jpg
    Picture 3: Boats Picture 4: Stars

    I have a macro that would re-order the table if a picture is removed; lets say picture 2.

    Picture 1.jpg Picture 3.jpg
    Picture 1: Flowers Picture 3: Boats
    Picture 4.jpg
    Picture 4: Stars

    After I run the macro, the automatic fields turn into static text and won't update anymore. I have tried displaying the automatic field using "ALT+F9" and then running the macro but it still won't retain the field.

    Please Login or Register  to view this content.

    Problem: Automatic fields don't remain automatic after the macro is run. How do I approach this problem?

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: How to keep automatic field after using a Word macro?

    Try:
    Please Login or Register  to view this content.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Invalid merge field message although I am using right field names in word document
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-17-2015, 07:59 AM
  2. Need Macro that cancels automatic OLE link updates in Word 2007
    By 180drft in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2013, 08:53 AM
  3. Macro to pull from a list of multiple CSV and automatic import to field.
    By chrisbellman00 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2012, 10:13 PM
  4. Macro to mimic the automatic field number in Word
    By Chiaroscuro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2012, 03:05 PM
  5. MS Word Macro. Form Field Reference Question.
    By gunerstahl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2011, 01:39 PM
  6. Macro to create workbooks with key field name and automatic email
    By su_nil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2010, 09:16 AM
  7. automatic field adjustment
    By Sabrick in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2006, 10:25 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1