Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using "Call" command to run function in listbox

Status
Not open for further replies.

DRH192

Programmer
Apr 25, 2005
96
GB
Hi all,

I have a listbox on a form which lists names of functions in a module. I want to use the "Call" method to run the function selected from the list box. I have tried

Call Me.ListScripts

but it doesn't work. Any help would be greatly appreciated.

Many Thanks
 
I believe you need a select case statement to do this.


________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Not sure that would work for me as I could be adding to the list on a regular basis. If there is no way of running the code directly using the "Call" method, I will create a new macro for each function and use the macro function "RunCode"

Thanks
 
look @ the Eval function


eval(me.listscripts)

or @ the run function

run(me.listscripts)
 
Run function is perfect!

Thankyou very much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top