Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA - User Type Array and declaring public

Status
Not open for further replies.

gsmartin2

Programmer
Oct 25, 2010
3
0
0
US
User Types cannot be declared Public... How do i get around this?

I am using VBA on a FactoryTalk View Platform. 'tag' object is a datatype that allows the creation of a tag that i can direct reference to a PLC (Industrial controller). I can declare a single tag as public, but not a user type array i've declared on a module. I could public declare like, 200+ tags i suppose, just sounds like too much work. I have to '.add' them and then 'set' to address before i can change values. The array is large enough that i do this through looping. If i can declare it public i can access it from other areas. Help...
 
>User Types cannot be declared Public

They can. What gives you the impression they cannot?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top