R
Rippka
I would like to make and print, a 20X20 cell multiplication table and have
the numbers automaticaly filled in. Is this possible?
the numbers automaticaly filled in. Is this possible?
macropod said:Hi Rippka,
You can do this easily enough in Word if you set it up as a form with a
formfield to iniate the table and formula fields for each of the remaining
cells.
Cheers
Doug Robbins - Word MVP said:Use a macro containing the following code:
Dim mtable As Table, i As Long, j As Long
Set mtable = ActiveDocument.Tables.Add(Range:=Selection.Range, NumRows:=20,
NumColumns:=20)
For i = 1 To mtable.Rows.Count
For j = 1 To mtable.Columns.Count
mtable.Cell(i, j).Range.Text = i * j
Next j
Next i
--
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.