Topic
Makro aus FPScirpt
Home page › Community › Automation and VBA › Macro from FPScirpt
- This topic has 2 replies and 2 voices and was last updated 10 years, 3 months ago ago by Michael Kaufmann.
-
AuthorPosts
-
30.03.2015 at 12:35 #35199Michael KaufmannParticipant
Hallo,
kann ich ein Makro bzw. VBA-Skript
[b]Sub Makro()
MsgBox “Hello”
End Sub[/b]
aus einem FPScript heraus aufrufen?Mit
[b]Dim Sum
Sum = Application.Run(“Makro”)[/b]
hatte ich leider keinen Erfolg.30.03.2015 at 12:35 #35201Michael KaufmannParticipantHallo,
kann ich ein Makro bzw. VBA-Skript
[b]Sub Makro()
MsgBox “Hello”
End Sub[/b]
aus einem FPScript heraus aufrufen?Mit
[b]Dim Sum
Sum = Application.Run(“Makro”)[/b]
hatte ich leider keinen Erfolg.31.03.2015 at 08:32 #35200Bernhard KantzParticipantDie Methode [b]Run[/b] des Application-Objektes wird aus FPScript heraus nicht unterstützt; was das Fehlen des entsprechenden Eintrags im Assistenten nahelegt.
Würde man dies zulassen, könnte man sehr schnell (etwa durch Verwendung der Methode Update() auf direkt oder indirekt das aufrufende Formelobjekt) endlose Aktualisierungskaskaden auslösen. Aus diesem Grund ist das Aufrufen von externem Code aus FPScript-Formeln nicht vorgesehen. -
AuthorPosts
- The topic ‘Makro aus FPScirpt’ is closed to new replies.