View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
George[_18_] George[_18_] is offline
external usenet poster
 
Posts: 4
Default MultiPage control

I am having diffculty binding events to controls contained
in a multipage control

given

Dim p As Page, c As Control
'mpMain is the multipage control
Set x = mpMain.Pages(0)
Set c =
p.Controls.add"Forms.CommandButton.1", "cmdUpdate", True)
c.Caption = "Update"

i need to caputre the click event for the button and do
something associated with it [update something]

any suggestions ?