Unable to add a value symbol programmatically in VBA

Discussion created by pisupportduke on Jan 18, 2012
Latest reply on Jan 20, 2012 by Asle Frantzen

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.