Win32OLE word objects

Discussion in 'Ruby' started by Chris Tranter, Apr 19, 2011.

  1. Hi,

    I'm fairly new to Ruby (and coding in general)and I'm having problems
    trying to interact with objects in Word.

    The word vba code I'm trying to replicate is as follows, basically I
    don't know how to recognise the dropdown and checkbox fields in Word.

    ActiveDocument.FormFields("PaxType2").DropDown.Value = 3
    ActiveDocument.FormFields("PNRCheckBox").CheckBox.Value = False
    b = ActiveDocument.FormFields("PNRCheckBox").CheckBox.Value

    Can anyone help, and also point me in the direction of how best to
    source this info so as not to bother with these type of requests again.

    Many thanks

    --
    Posted via http://www.ruby-forum.com/.
     
    Chris Tranter, Apr 19, 2011
    #1
    1. Advertising

  2. Mike Stephens, Apr 19, 2011
    #2
    1. Advertising

  3. Chris Tranter, Apr 19, 2011
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jim Freeze
    Replies:
    0
    Views:
    111
    Jim Freeze
    Jan 27, 2004
  2. Masaki Suketa
    Replies:
    4
    Views:
    420
    Dave Burt
    Mar 27, 2006
  3. zxem
    Replies:
    1
    Views:
    269
  4. Mohit Sindhwani
    Replies:
    5
    Views:
    214
    Mohit Sindhwani
    Oct 27, 2008
  5. jhn Vln

    win32ole word find replace

    jhn Vln, Oct 20, 2009, in forum: Ruby
    Replies:
    1
    Views:
    309
    David Mullet
    Oct 21, 2009
Loading...

Share This Page