T
Torim
Good morning.
I want to create a control handle via VB Automation. For some reason
it doesn't work.
Here's the sample code I had in mind:
'========================================================================
dim msgdummy As Integer
dim Shape As Visio.Shape
dim ControlX As Visio.Cell
dim ControlY As Visio.Cell
.....
'Drop the Shape and do some other stuff
....
Set ControlX = Shape.CellsSRC(visSectionControls, visRowControl,
visCtlX)
Set ControlY = Shape.CellsSRC(visSectionControls, visRowControl,
visCtlY)
ControlX.Formula = 5 'just a random number
ControlY.Formula = 5 'just a random number
msgdummy = msgbox("ControlX = " & ControlX.ResultInt(vismillimeters,0)
msgdummy = msgbox("ControlY = " & ControlX.ResultInt(vismillimeters,0)
'========================================================================
Both msgbox's print "0" and if I take a look at the ShapeSheet the
respective control cells are empty.
Tried the CellsSRCExists function which told me that those two cells
don't even exist.
What am I doing wrong?
Any help would be appreciated
(using Visio 2002 pro)
I want to create a control handle via VB Automation. For some reason
it doesn't work.
Here's the sample code I had in mind:
'========================================================================
dim msgdummy As Integer
dim Shape As Visio.Shape
dim ControlX As Visio.Cell
dim ControlY As Visio.Cell
.....
'Drop the Shape and do some other stuff
....
Set ControlX = Shape.CellsSRC(visSectionControls, visRowControl,
visCtlX)
Set ControlY = Shape.CellsSRC(visSectionControls, visRowControl,
visCtlY)
ControlX.Formula = 5 'just a random number
ControlY.Formula = 5 'just a random number
msgdummy = msgbox("ControlX = " & ControlX.ResultInt(vismillimeters,0)
msgdummy = msgbox("ControlY = " & ControlX.ResultInt(vismillimeters,0)
'========================================================================
Both msgbox's print "0" and if I take a look at the ShapeSheet the
respective control cells are empty.
Tried the CellsSRCExists function which told me that those two cells
don't even exist.
What am I doing wrong?
Any help would be appreciated
(using Visio 2002 pro)