G
Gary Shell
I am converting some code that was in an Access application that opened an
instance of VISIO and created a document. The new code, in VB.NET
instantiates the VISIO Active X control and uses it to create the same
document. This line:
shpObj = pagObj.InsertObject("Forms.CheckBox.1", &H2000)
attempts to add a checkbox control to the diagram. But it generates the
following error:
"Visio cannot insert this control because VBA is disabled. Controls require
VBA to function properly."
Is it not possible to instantiate a control on a Visio drawing from the
Visio ActiveX control? This worked fine in the old Access/Visio
application.
Gary
instance of VISIO and created a document. The new code, in VB.NET
instantiates the VISIO Active X control and uses it to create the same
document. This line:
shpObj = pagObj.InsertObject("Forms.CheckBox.1", &H2000)
attempts to add a checkbox control to the diagram. But it generates the
following error:
"Visio cannot insert this control because VBA is disabled. Controls require
VBA to function properly."
Is it not possible to instantiate a control on a Visio drawing from the
Visio ActiveX control? This worked fine in the old Access/Visio
application.
Gary