VBA help to search for PI tag based on the Userint1 field.
Could you please details out your actual requirement ?
If you want to create a vba app to search pi tag based on user input in excel (if am not wrong). You can use the built in PI sdk search.
Please find the snippet below
You have to add PI-SDK Dialogs in references for this.
I am looking for VBA way to search by code for a tag.
I do not have a tag name. So I need to search by the Tag attribute value in the “Userint1” field.
you can try using getpoints ,
Set oServer = PISDK.Servers("ServerName")
should be changed to
Set srv = PISDK.Servers("ServerName")
Thanks Eugene for the correction
Edited the snippet
Retrieving data ...