From: Robert McGovern Date: 2004-01-28T19:09:11+09:00 Subject: Re: Looking for Win32OLE sample code (Tables in Word) > require 'win32ole' > word = WIN32OLE.new("Word.Application") > word.visible = true > word.documents.add > word.ActiveDocument.Tables.Add(Word.selection.range, 4, 2) ^^^^^ change "Word" to "word" > selection = word.selection > 4.times { > selection.typetext "Hello" > selection.moveright > selection.typetext "World!" > selection.moveright > selection.moveright > }