Hi,
Any ideas why this doesn't work?
The proc doesn't even fire on pressing the button (which is on a popup menu btw, not sure if this might have something to do with it).
The argument is passed to the button and the button properties show 'Collapse_To_Node "E123"' as the OnAction property.
If I remove the argument it works just fine.
nd is a selected treeview node, the node and key are both <> nothing and neither is the Key null.
Any suggestions gratefully received.
Thanks, Iain
Any ideas why this doesn't work?
Code:
With cmd
.Style = msoButtonIconAndCaption
.Caption = "Collapse to Here"
.FaceId = 188
.OnAction = "'Collapse_To_Node""" & CStr(nd.Key) & """'"
End With
The proc doesn't even fire on pressing the button (which is on a popup menu btw, not sure if this might have something to do with it).
The argument is passed to the button and the button properties show 'Collapse_To_Node "E123"' as the OnAction property.
If I remove the argument it works just fine.
nd is a selected treeview node, the node and key are both <> nothing and neither is the Key null.
Any suggestions gratefully received.
Thanks, Iain