dictuc_aci

Read and Write in a tag in PB using VBA

Discussion created by dictuc_aci on Mar 7, 2013
Latest reply on Mar 8, 2013 by Jhenderson

Hello,

 

I'm starting to program in ProcessBook using VBA. I want to make a basic program to read and write in a tag. The code I'm using is down below. If someone could help me on how to write in a tag I'll be very greatful. 

 

 

 
Option Explicit

Private Sub button1_Click()
    Dim vDate As Variant
    Dim vVal As Variant
    Dim lStatus As Long
    
    vVal = Value1.GetValue(vDate, lStatus)
    Text1.Contents = vVal
End Sub

 

 

Greetings

Outcomes