Topic
Markers using VBA
Page d'accueil ' Communauté ' Automation et VBA ' Marqueurs à l'aide de VBA
- Ce sujet contient 2 réponses, 2 participants et a été mis à jour pour la dernière fois par HerveM1234, le il y a 16 années et 2 mois.
-
AuteurMessages
-
13.03.2009 à 20:13 #34799HerveM1234Participant
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.@+
13.03.2009 à 20:13 #34801HerveM1234ParticipantHi,
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.@+
13.03.2009 à 21:31 #34800Bernhard KantzParticipantThis is a bug in FlexPro. It will be fixed in version 8.0.19.
-
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.