CasewareDocs
New in Caseware Cloud Engagements 2026-05See what's new

SetTag

Assigns a tag to a field.

This is only a logical operation; physical tagging takes place only after the Save method has been called.

Compatibility

Available as of IDEA version 10.0

Syntax

SetTag(tagID As String, fieldName As String)

SetTag(tagID As String, fieldName As String)

Parameter

tagID

Name of the tag

fieldName

Name of the field

Example

Sub Main 
Dim mc As Object
Dim tagMgm As Object
Dim tagger As Object
Set mc = SmartContext.MacroCommands
Set tagMgm = mc.TagManagement
Set tagger = tagMgm.AssociatingTagging("ABC.IMD”)
tagger.SetTag "Price", "LIST_PRICE"
tagger.SetTag "Cost", "ITEM_COST"
tagger.Save
Set tagger = Nothing
Set tagMgm = Nothing
Set mc = Nothing
End Sub