FactoryTalk View 6.1 SE VBA Use

cmac2425

Lifetime Supporting Member
Join Date
Jul 2012
Location
Pittsburgh
Posts
48
I am trying to convert my RSView 32 project into FactoryTalk View 6.1 SE. I have converted everything but left the VB until last. I have my code in where it needs to be but I cannot execute it. I used to use the VBAExec function in RSView but that is not in FT 6.1. I have listed my code below, just trying to call the subroutine NumericDisplay2Change. Is there any ideas out there on how to do it? I place this code in VB and use a push button to call a macro, which in turn calls the VB. Thanks in advance!

[FONT=&quot]Private Sub NumericDisplay2Change()[/FONT]
[FONT=&quot]On Error GoTo ErrorHandler[/FONT]
[FONT=&quot]If Not IsError(NumericDisplay2.Value) Then[/FONT]
[FONT=&quot]If NumericDisplay2.Value = 1 Then[/FONT]
[FONT=&quot] ExecuteCommand "&Set TEST_1 9"[/FONT]
[FONT=&quot] End If[/FONT]
[FONT=&quot] End If[/FONT]
[FONT=&quot] Exit Sub[/FONT]
[FONT=&quot]ErrorHandler:[/FONT]
[FONT=&quot] LogDiagnosticsMessage Err.Description, ftDiagSeverityError[/FONT]
[FONT=&quot]End Sub[/FONT]
 

Similar Topics

I'm creating an HMI that has a recipe with 288 data point. It has 3 pieces of data for 96 segments. I need help with VBA code to copy all 288...
Replies
0
Views
140
Hi, Can someone guide me through how to use FactoryTalk SE VB script to open communication with SQL Server? which command I can use? Are there...
Replies
2
Views
2,301
Hello group, I have been migrating a project from RSView 32 V7.6 to FactoryTalk View SE Local Station V12 over the last couple of days. All told...
Replies
0
Views
998
For trend charts, I can use an ActiveX Calendar control to select a date on a trend using the following code where "Trend" is the name of the...
Replies
2
Views
1,581
Anyone know how to change the mouse icon to something else using VBA? It looks like it can be done with VBA forms and based on the object the...
Replies
0
Views
2,217
Back
Top Bottom