buddhaman001
Member
Objective.
I am trying, as the subject says, to gather tag values, put them in a .txt file, then I want to send them out over the email activex control in site edition.
My questions.
converting tags to variables for use with vba code.
i have seen this line: Dim Tag1 As Tag
I assume that tells Vb that tag1 is a tag
http://www.plctalk.net/qanda/showthread.php?t=91359&highlight=VBA+text
I have been going over this post and i get that "Combobox1.AddItem Tag1.Value" tells the vba code to place the value of tag1 in the referenced combobox.
but nowhere have I seen how to actually tell the vba code which tag you want to read
would it be something like?
Dim Tag1 as plant/waterlevel
Then i see the ability to write to word, excel, and access can the values be saved directly to a .txt file or will i need to go through word then tell word to save as a .txt file.
man I don't even know if i've stated my questions clear enough, sorry if i haven't.
I am trying, as the subject says, to gather tag values, put them in a .txt file, then I want to send them out over the email activex control in site edition.
My questions.
converting tags to variables for use with vba code.
i have seen this line: Dim Tag1 As Tag
I assume that tells Vb that tag1 is a tag
http://www.plctalk.net/qanda/showthread.php?t=91359&highlight=VBA+text
I have been going over this post and i get that "Combobox1.AddItem Tag1.Value" tells the vba code to place the value of tag1 in the referenced combobox.
but nowhere have I seen how to actually tell the vba code which tag you want to read
would it be something like?
Dim Tag1 as plant/waterlevel
Then i see the ability to write to word, excel, and access can the values be saved directly to a .txt file or will i need to go through word then tell word to save as a .txt file.
man I don't even know if i've stated my questions clear enough, sorry if i haven't.