We help IT Professionals succeed at work.
Get Started

paste at end of section

Kaps_68 asked
Last Modified: 2012-05-09
I want to know how to paste a table at the end of a particular section in Word e.g at the end of Section 2. I was thinking along the lines below Bookmarks("\Section 2"). However it isn't working.Any thoughts ? thanks

no_of_docs_to_add = UBound(third_Party_file_names_no_ext)

For j = 0 To no_of_docs_to_add

Set wrd_Next_Section = wrdApp.Documents.Open(third_Party_file_Names(j))

'identify the table
Set new_table = wrd_Next_Section.Tables(1)

Options.PasteFormatBetweenDocuments = 0
Options.PasteFormatBetweenStyledDocuments = 0

'copy over the document


'paste the table

wrd_Main_Doc.Bookmarks("\Section 2").Range.PasteAndFormat (wdFormatOriginalFormatting)

Next j

Open in new window

Watch Question
Top Expert 2012
This problem has been solved!
Unlock 2 Answers and 5 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE