N
Nik
Hi Friends,
I am working on an application in VB6.0 which creates Word document on the fly.
I have added a ComboBox control to the page, but I am not able to add the individual ListItems to this Combo Box.
I am not getting any run time errors, but when I open the created document it doesn't show me any Item in the ComboBox.
Following is the code I am trying.
Set MyInLineShape = MyTable.Cell(1, 1).Range.InlineShapes.AddOLEControl("Forms.ComboBox.1")
MyInLineShape.OLEFormat.object.Style = 2
MyInLineShape.OLEFormat.object.AddItem "Item 1"
MyInLineShape.OLEFormat.object.AddItem "Item 2"
MyInLineShape.OLEFormat.object.AddItem "Item 3"
MyInLineShape.OLEFormat.object.AddItem "Item 4"
Kindly Help,
Thanks and Regards,
Nik
I am working on an application in VB6.0 which creates Word document on the fly.
I have added a ComboBox control to the page, but I am not able to add the individual ListItems to this Combo Box.
I am not getting any run time errors, but when I open the created document it doesn't show me any Item in the ComboBox.
Following is the code I am trying.
Set MyInLineShape = MyTable.Cell(1, 1).Range.InlineShapes.AddOLEControl("Forms.ComboBox.1")
MyInLineShape.OLEFormat.object.Style = 2
MyInLineShape.OLEFormat.object.AddItem "Item 1"
MyInLineShape.OLEFormat.object.AddItem "Item 2"
MyInLineShape.OLEFormat.object.AddItem "Item 3"
MyInLineShape.OLEFormat.object.AddItem "Item 4"
Kindly Help,
Thanks and Regards,
Nik