Thread: [Solved] Word GoTo From Excel
View Single Post
 
Old 12-07-2012, 07:35 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Bill,

I understand your need for privacy re what you can post and have no problems with that. Unfortunately, though, the code I most needed to see hasn't been included. Since you want the table inserted immediately after the title, try:
Code:
With wrdDoc
    'All the other code before the insertion of an empty paragraph after the title
    .Paragraphs.First.Range.InsertAfter vbCr
    .Tables.Add Range:=.Paragraphs.First.Next.Range, NumRows:=4, NumColumns:=3
End With
The above code will replace the empty paragraph after the title with a 4-row*3-column table.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote