5 Replies Latest reply on Jan 20, 2012 2:36 PM by Asle Frantzen

    Unable to add a value symbol programmatically in VBA

    pisupportduke

      I am building a ProcessBook display that will dynamically add/remove symbols based on user input.

       

      There have been no issues adding/removing text objects, but I cannot add a value object.

       

      The code block is:

       

                   Dim oValue As PBSymLib.Value
                    Set oValue = Symbols.Add(pbSymbolValue)

       

      However, when the 'Set' command is executed, the message 'Run-time error... An argument was expected but not supplied' appears.

       

      All help is appreciated.