Skip to main content

Search

Search

Object error when dynamically changing font color in script.

Comments

2 comments

  • Avatar
    KM3

    I don't think using a class object like this works... Idk, could be wrong. But I'm pretty sure you can't manipulate objects (layout elements) in the OnProcessData event. Go to File > Document Options > VBScript (off the top of my head). Enter the script there. To reference your "Text 10" element, simply write Format.Objects("Text 10").TextColor  = btColor.White. Or similar. Shouldn't be too hard to figure out.

    0
  • Avatar
    Todd Hansen

    That got it working.

    Thanks

     

    0

Please sign in to leave a comment.