Object error when dynamically changing font color in script. Follow
I am having problems with a VB script that I am using to change the color the text for an items on my label. I have the below script entered in the VB Scripting section of Transformations. When I test the Script I get an error “<Line 7: : Type mismatch: 'Objects'>.
Could use some pointers on what I am doing wrong.
Set Pallet = Objects("Text 10")
If (Field("WP066009.PFPTXT") = "PARTIAL PALLET") Then
Pallet.TextColor = btColor.Black
Pallet.TextBackgroundColor = btColor.White
Pallet.TextColor = btColor.White
Pallet.TextBackgroundColor = btColor.Black
Please sign in to leave a comment.