Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-17-2011, 05:22 PM
macropod's Avatar
macropod macropod is offline adding rows to word table Windows 7 64bit adding rows to word table 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 hklein,

Assuming you have your code for starting Word & creating the document in place, you could use code like:
Code:
Dim i As Long, j As Long, k As Long
With Doc.Tables(i)
  For j = 1 To k
    .Rows.Add
  Next
End With
where 'Doc' is the document you're working on, 'i' is the table in the document and 'k' is the number of rows to add.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding rows to word table Odd behaviour of table - keep rows together Stephan Lindner Word Tables 1 09-10-2011 05:31 AM
adding rows to word table Fixing number or rows in a table burnsie Word 2 07-12-2011 02:59 AM
Repeating table rows in template? TheWedgie Word 0 09-11-2010 09:35 PM
Help Autoformating a Table w 2 header rows Julie713 Word Tables 0 03-01-2010 08:15 AM
adding rows to word table Table rows moving to new page when you don't want them to graham Word Tables 1 11-16-2009 08:51 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:35 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