1 of 1 people found this helpful
It seems you're trying to execute the GetDefinition() method on your mySymbolName variable, which is of type string. Try something like this instead:
For Each mySymbol In Symbols
If mySymbol.Type = 9 Then
Set myButtonDef = mySymbol.GetDefinition()
Thanks for the pointer. As I have said, I must be something stupid . This is working perfectly.
I understand Asle's reply is correct and assume you wont mind he earns the deserved credits Please allow me marking his answer as the correct one.
Go right ahead Gregor. Thumbs up to Alse