Hi,
I'm trying to create a check list using word which basically consists of about 25 questions each of which will have a combo box (from control toolbox not forms toolbox) where users can select one of three options yes|no|n/a.
I want to add a loop to the document_open() event to populate the combos but am getting an error
Run time error 424: Object Required!
When I click debug it breaks on the hilighted line below.
myCtrl = Nothing and Controls is Empty???
VB Code:
Private Sub Document_Open() Dim myCtrl As Control [HL="#FFFF00"] For Each myCtrl In Controls[/HL] If InStr(1, myCtrl.Name, "cbo", vbTextCompare) Then myCtrl.AddItem "Yes" myCtrl.AddItem "No" myCtrl.AddItem "N/A" End If Next End Sub
Am I missing a reference or something?
Any help will be gratefully received
Cheers Al




Reply With Quote