Bugs item #3237, was opened at 2006-01-11 13:13
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3237&group_id=426

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Harm Tromp (htromp)
Assigned to: Nobody (None)
Summary: win32ole bug  'method missing': DisableAutoMacros (WIN32OLERuntimeError)

Initial Comment:
Code fragments below still work fine in the One-Click Ruby Installer ruby182-14_rc7a.exe release, and in an older version, reporting:
ruby 1.8.2 (2004-06-29) [i386-mswin32].

But in more recent releases it fails with 'method missing'.

For my script it's essential that Word macros are disabled,
so I made in the old ruby release an executable as a work around.

OS:      Microsoft Windows XP Professional, Version 2002, SP1
MS Word: Microsoft Word (9.0.4402 SR-1)
Ruby:    ruby 1.8.2 (2004-12-25) [i386-mswin32]

...
require 'win32ole'
...
class Word
...
    def initialize
	@wAppl = WIN32OLE.new("Word.Application")
	@wAppl.Application.DisplayAlerts = WdAlertsNone
	@wAppl.WordBasic.DisableAutoMacros(true)
	@mvList = Hash.new
    end
...
wAppl = Word.new
...

>ruby docConvert.rb
docConvert.rb:56:in `method_missing': DisableAutoMacros (WIN32OLERuntimeError)
    OLE error code:0 in <Unknown>
      <No Description>
    HRESULT error code:0x80020003
      Member not found.	from docConvert.rb:56:in `initialize'
	from docConvert.rb:157:in `new'
	from docConvert.rb:157
>Exit code: 1

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3237&group_id=426