K
Kaego
I am trying to find some examples on using the Page.DropLinked method with VBA.
I am getting an "invalid parameter" Run-Time error -2032465751 with the
following example in the Visio SDK
Public Sub DropLinked_Example()
Dim vsoShape As Visio.Shape
Dim vsoMaster As Visio.Master
Dim dblX As Double
Dim dblY As Double
Dim lngDataRowID As Long
Dim vsoDataRecordset As Visio.DataRecordset
Dim intRecordesetCount As Integer
intRecordsetCount = Visio.ActiveDocument.DataRecordsets.Count
Set vsoDataRecordset =
Visio.ActiveDocument.DataRecordsets(intRecordsetCount)
Set vsoMaster = Visio.Documents("Basic_U.VSS").Masters("Rectangle")
dblX = 2
dblY = 2
lngDataRowID = 1
Set vsoShape = ActivePage.DropLinked(vsoMaster, dblX, dblY,
vsoDataRecordset.ID, lngDataRowID, True)
End Sub
I am getting an "invalid parameter" Run-Time error -2032465751 with the
following example in the Visio SDK
Public Sub DropLinked_Example()
Dim vsoShape As Visio.Shape
Dim vsoMaster As Visio.Master
Dim dblX As Double
Dim dblY As Double
Dim lngDataRowID As Long
Dim vsoDataRecordset As Visio.DataRecordset
Dim intRecordesetCount As Integer
intRecordsetCount = Visio.ActiveDocument.DataRecordsets.Count
Set vsoDataRecordset =
Visio.ActiveDocument.DataRecordsets(intRecordsetCount)
Set vsoMaster = Visio.Documents("Basic_U.VSS").Masters("Rectangle")
dblX = 2
dblY = 2
lngDataRowID = 1
Set vsoShape = ActivePage.DropLinked(vsoMaster, dblX, dblY,
vsoDataRecordset.ID, lngDataRowID, True)
End Sub