Topic
Diagram en VBA
Home page › Community › Automation and VBA › Diagram en VBA
- This topic has 2 replies and 2 voices and was last updated 18 years, 4 months ago ago by latifa khammal.
-
AuthorPosts
-
04.01.2007 at 01:33 #34947latifa khammalParticipant
Bonjour,
Je suis débutante en flexpro7, et je veux savoir comment créer un diagram2D à partir d’un dataset ou bien un datalinkExcel
Merci04.01.2007 at 01:33 #34949latifa khammalParticipantBonjour,
Je suis débutante en flexpro7, et je veux savoir comment créer un diagram2D à partir d’un dataset ou bien un datalinkExcel
Merci04.01.2007 at 18:22 #34948Bernhard KantzParticipantDo the following steps:
– Record a Quick Macro.
– Select your object.
– Create interactively a diagram.
– Stop Macro Recording.
– Open the VBA editor (ALT+F11; FlexPro Professional)You see the code in Template.FPT. Now you can edit this code.
Example:
[code]
Dim NameArray
NameArray = Array(“Signal”, “Signal2”)
With ActiveDatabase.RootFolder.Add(“2D-Diagram”, fpObjectType2DDiagram)
With .Curves.Add
.Data.DataSet = NameArray(0)
End With
With .Curves.Add
.Data.DataSet = NameArray(1)
End With
.Update
End With
[/code]
See also
FlexPro Online Help
Creating a Macro -
AuthorPosts
- You must be logged in to reply to this topic.