xuniren2008
New Member
- Joined
- Oct 15, 2006
- Messages
- 1
The VBA programme allow
us to add active commandbutton and other label at the running time.But
how to use the active commandbutton to execute the codes,not just use its properties,but its method.
look the following example:
dim picCount as integer
picCount=0
me.height=int(0.98*activewindows.height)
me.width=int(0.98*activewindows.width)
LC="labelA"&picCount
me.controls.add bstrProgId:="forms.label.1",Name:=LC,visible=true
me.controls(LC).top=25
me.controls(LC).left=50
When we want to add bstrProgId:="forms.commandbutton.1",
How to let this commandbutton to execute some codes,not just use its propertities.
us to add active commandbutton and other label at the running time.But
how to use the active commandbutton to execute the codes,not just use its properties,but its method.
look the following example:
dim picCount as integer
picCount=0
me.height=int(0.98*activewindows.height)
me.width=int(0.98*activewindows.width)
LC="labelA"&picCount
me.controls.add bstrProgId:="forms.label.1",Name:=LC,visible=true
me.controls(LC).top=25
me.controls(LC).left=50
When we want to add bstrProgId:="forms.commandbutton.1",
How to let this commandbutton to execute some codes,not just use its propertities.