Win32OLE word objects

C

Chris Tranter

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
 

Ask a Question

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top