Windows Vista Forums

Coppy content between two docs (Word2007)
  1. #1


    mocha99 Guest

    Coppy content between two docs (Word2007)

    Hi all

    I have 2 documents X and Y

    The documents have the same structure, they have a 5-column table.

    Column A has the same content on both documents.

    I move my cursor down the 5th column (column E) in document Y and i need
    to use a macro to match the corresponding line (based on the content of
    column A which has the same content in both docs) in doc X and copy the
    content of Column E in X into Column E in Y.



    Example:

    Table in DocX contains:
    A..........E
    cat calico
    dog beagle
    bird sparrow

    Table in DocY:
    A..........E
    dog <blinking_cursor>


    I press my macro key and
    Table in DocY becomes:
    dog beagle


    Can you please help me with this?

    Thanks a lot!


      My System SpecsSystem Spec

  2. #2


    Auric__ Guest

    Re: Coppy content between two docs (Word2007)

    On Thu, 10 Sep 2009 14:30:20 GMT, mocha99 wrote:

    > I have 2 documents X and Y
    >
    > The documents have the same structure, they have a 5-column table.
    >
    > Column A has the same content on both documents.
    >
    > I move my cursor down the 5th column (column E) in document Y and i need
    > to use a macro to match the corresponding line (based on the content of
    > column A which has the same content in both docs) in doc X and copy the
    > content of Column E in X into Column E in Y.
    This question really belongs in a Word group. I suggest
    microsoft.public.word.programming.

    (Personally, I'd do it in Excel and just embed the worksheet if the doc is
    necessary. Tons easier that way, IMO.)

    --
    There are more horses' asses in this world than there are horses.

      My System SpecsSystem Spec

Coppy content between two docs (Word2007) problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to SAVE AS on domain from word2007 Jiøí Cvrk Vista networking & sharing 5 17 Dec 2007
Live icons doesn't work for word2007 documents omrit Vista file management 0 17 Jul 2007
Windows Mail-Word2007-Vista Business Anty Vista mail 4 17 Jun 2007
Set-Content not updating file after get-content and forEach-Object Tolli PowerShell 1 14 Jun 2007
Weirdness with get-content | replace | set-content - file content is deleted!! Andrew Watt [MVP] PowerShell 4 23 May 2006