View Single Post
  #6   Report Post  
Posted to microsoft.public.word.tables
Ashwin Ashwin is offline
external usenet poster
 
Posts: 8
Default Quickest method (from user's perspective) of populating a tabl

I understand that I can update the contents of each cell individually, but is
there something faster like Pasting or setting a range to an array?

--
ashwin


"Greg Maxey" wrote:

Populated with what?

If you just want to put some text in each cell then you could run a macro.
This may not be the "quickest" but its pretty fast and it would number each
table cell with a sequential number:

Sub ScratchmMacro()
Dim oCell As Cell
Dim i As Long
Set oCell = Selection.Tables(1).Cell(1, 1)
i = 0
Do
i = i + 1
oCell.Range.Text = i & "."
Set oCell = oCell.Next
Loop Until oCell Is Nothing
End Sub


--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.

"ashwin" wrote in message
...
I have a table with one hundred rows.

What is the quickest way to populate all one hundred rows?


--
ashwin