Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 05-23-2013, 04:22 PM
macropod's Avatar
macropod macropod is offline PasteAppendTable Question Windows 7 32bit PasteAppendTable Question Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Quote:
The problem I am having is that my PasteAppendTable command is not working correctly
So what isn't it doing as expected?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 05-24-2013, 04:55 PM
macropod's Avatar
macropod macropod is offline PasteAppendTable Question Windows 7 32bit PasteAppendTable Question Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Cross-posted at: http://www.excelforum.com/word-progr...-question.html
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



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 09:07 PM.


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