FactoryTalk Global Objects don't keep VBA Code

Hello guys, can anyone help me with FactoryTalk View Studio.

I need to use a Global Object that contains VBA Macros in different displays, but it doesn't keep the VBA code when I copy it.

Any idea?
 
Global objects

The code should still run in the pasted instance in your display. Since global objects are class based, their config resides in the global objects display, not in the instance displays. But any VB defined in the global display should still run when the object is instantiated in the instance display. I would add a simple button with a msgbox() in the global object and test that out. Copy paste to an instance display and then press the button to verify the VB is still there in the background.


If you need the VB to be different from instance to instance, then you can't use a global object for that.
 

Similar Topics

I'm importing the PlantPAx 4.10.06 Global Objects library into FactoryTalk View ME, but the library displays question marks ("?") instead of text...
0
Replies
801
Views
Hello all, I am working on a project in FactoryTalk SE. Suddenly while working on a new screen, the global objects I am copying to it are not...
0
Replies
1,890
Views
I have a FactoryTalk ME application with some global objects for diagnostics of 1769 and 1719 IO modules that don't work. They were developed by...
3
Replies
3,753
Views
Hi all, Does anyone know of a way to pass global objects a parameter file name as a variable? e.g passing {#101} or the like to the to...
0
Replies
1,829
Views
I have a similar question to a previous post but thought it warranted its own thread. I have a global object (primarily acting as a goto display)...
1
Replies
2,141
Views
Top