Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.word.tables
Doug Robbins - Word MVP
 
Posts: n/a
Default 20x20 multiplication table

Easier to run a macro containing the following commands:

Dim mytable As Table
Dim i As Long
Dim j As Long
Set mytable = ActiveDocument.Tables.Add(Range:=Selection.Range, NumRows:=20,
NumColumns:=20)
For i = 1 To 20
For j = 1 To 20
mytable.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

"Bob S" wrote in message
...
I hit "Send" too soon; there is a slight error in the directions for
"extra credit".

The corrected version is below:

For extra credit, try the following.

Start with your list of 400 numbers, and on some other line type an
asterisk. Select the list of numbers and convert it to a two-column
table. Select and copy the asterisk, select the cells in all but the
first row of the last column in the table, and paste the asterisk.
Convert the table back to text, separating on paragraph marks not tab
characters.

Now look down the list for the next (ignore the 1) non-asterisk number
(3), select the list and convert it to a table with that many columns.
Select the cells in all but the first row of the last column in the
table, and paste the asterisk. Convert the table back to text,
separating on paragraph marks not tab characters.

Do this whole process again for the next non-asterisk number (5), and
keep doing it until the smallest number that is not 1 or an asterisk
is greater than 20.

At this point you have a list of all the prime numbers less than 400,
without typing a single number or doing any arithmetic.

Wish me luck, I am about to hit "Send" again...

Bob S



 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you make a multiplication table using numbers. Rippka Tables 11 December 5th 05 07:46 PM
Table headers/footers and layout Keith Page Layout 1 April 8th 05 07:37 PM
How to Avoid Word 2003 Table Style Problems Judy Haynes Tables 0 March 23rd 05 06:41 PM
Table AutoFormats vs. Table Styles confusion Tony Jollans Tables 5 March 6th 05 07:18 PM
Row height problem with table in table Stephanie T. Tables 0 November 23rd 04 03:35 PM


All times are GMT +1. The time now is 10:35 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"