Run the code written for a different control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

HI,
I have created a command button (named "Refresh")
When I click on it, I want to invoke running
the sub procedure defined for a multi-select List Box.
How should I write the code for the "Refresh" button?

Here is my initial attempt (commented out):
Private Sub Refresh_Click()
'SITECRRTLIST_AfterUpdate()
End Sub

David
 
Hi,
This should work:
Private Sub Refresh_Click()
SITECRRTLIST_AfterUpdate
End Sub

HTH
Dan Artuso, MVP
 
david said:
I have created a command button (named "Refresh")
When I click on it, I want to invoke running
the sub procedure defined for a multi-select List Box.
How should I write the code for the "Refresh" button?

Here is my initial attempt (commented out):
Private Sub Refresh_Click()
'SITECRRTLIST_AfterUpdate()
End Sub


Close, but you do have to follow the standard rules for
calling a procedure. Either of these are acceptable:

SITECRRTLIST_AfterUpdate
Call SITECRRTLIST_AfterUpdate()
 
It works. Thank yo.
David

Marshall Barton said:
Close, but you do have to follow the standard rules for
calling a procedure. Either of these are acceptable:

SITECRRTLIST_AfterUpdate
Call SITECRRTLIST_AfterUpdate()
 
Back
Top