FlexPro Forum – Discuss Your Topic!

Markers using VBA

Home > Community > Automation and VBA > Markers using VBA

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12383
    HerveM1234HerveM1234
    Participant

    Hi,

    When I play this small macro :

    ActiveDatabase.TaskWindows(fpTaskWindowObjectList).Activate
    ActiveDatabase.Selection.SelectObject “2D Diagram.2D”
    ActiveDatabase.SelectedObject.Open = True
    ActiveDatabase.ActiveObject.CursorActive = True
    Windows(“2D Diagram”).Activate
    ActiveDatabase.ActiveObject.CursorActive = True
    ActiveDatabase.ActiveObject.ActiveCursor.PositionIndex = 20

    It fails on the last line, with the Runtime error 91. Then I press “debug”, and without modifying anything I press Play again. And it works fine !!!!

    If somebody could explain me this strange behaviour, thanks in advance.
    I’m using FlexPro7.

    @+

    #8066
    HerveM1234HerveM1234
    Participant

    Hi,

    When I play this small macro :

    ActiveDatabase.TaskWindows(fpTaskWindowObjectList).Activate
    ActiveDatabase.Selection.SelectObject “2D Diagram.2D”
    ActiveDatabase.SelectedObject.Open = True
    ActiveDatabase.ActiveObject.CursorActive = True
    Windows(“2D Diagram”).Activate
    ActiveDatabase.ActiveObject.CursorActive = True
    ActiveDatabase.ActiveObject.ActiveCursor.PositionIndex = 20

    It fails on the last line, with the Runtime error 91. Then I press “debug”, and without modifying anything I press Play again. And it works fine !!!!

    If somebody could explain me this strange behaviour, thanks in advance.
    I’m using FlexPro7.

    @+

    #8590
    Bernhard KantzBernhard Kantz
    Participant

    This is a bug in FlexPro. It will be fixed in version 8.0.19.

    support@weisang.com

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.