word to word macro with a table

A

Ann

how do i take data in one word table and create a macro to copy that data to
another word document table? tia.
 
J

Jay Freedman

Ann said:
how do i take data in one word table and create a macro to copy that
data to another word document table? tia.

Answered in the docmanagement newsgroup (and it didn't belong there,
either).

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
S

StevenM

Ann,

Sub CopyTable()
If Selection.Information(wdWithInTable) = False Then
MsgBox "The cursor must be positioned in the table you want to
Copy." _
& vbCr & vbCr & "Position the cursor in a Table and run this macro
again."
Else
Selection.Tables(1).Select
Selection.Copy
Documents.Add
Selection.Paste
End If
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top