Run the code written for a different control

D

david

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
 
D

Dan Artuso

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

HTH
Dan Artuso, MVP
 
M

Marshall Barton

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()
 
D

david

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()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top