Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-23-2013, 01:30 PM
danenorman13 danenorman13 is offline PasteAppendTable Question Windows 7 64bit PasteAppendTable Question Office 2010 64bit
Novice
PasteAppendTable Question
 
Join Date: May 2013
Posts: 1
danenorman13 is on a distinguished road
Default PasteAppendTable Question


I am working on a code that appends some data copied from excel and appended to a current table in a word document. The problem I am having is that my PasteAppendTable command is not working correctly. I have listed my code below:

Code:
Sub ChangeTable()
Dim rngParagraphs As Range

Set rngParagraphs = ActiveDocument.Range( _
Start:=ActiveDocument.Tables(3).Range.Start, _
End:=ActiveDocument.Tables(3).Range.End)

rngParagraphs.Style = "Table Columns 2"
rngParagraphs.Rows.Last.Select
Selection.InsertRowsBelow (1)
Selection.PasteAppendTable
rngParagraphs.Style = "Table Grid"

End Sub
I thought maybe I could move the cursor to the first cell of the new last row and that would fix things but I haven't been able to figure that out either. Any help is greatly appreciated!
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
PasteAppendTable Question Question jmsa7 Excel 3 12-13-2011 01:44 AM
ppt question fat PowerPoint 0 10-06-2011 01:33 PM
PasteAppendTable Question One to many and many to one question Girlie4 Excel 3 08-09-2009 08:02 PM
Need help with this question... lllDNYlll Outlook 0 05-04-2006 07:17 AM
Categories question & replying with attachment question glitzymama Outlook 0 03-15-2006 09:32 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:33 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft