Ok, I have some code that will create a form, listbox, and two buttons. I want to be able to upon pressing the OK button the data selected in the listbox must be returned. In the long run, I want this whole thing to work like an msgbox or inputbox, but will use an listbox instead. As of right now, I cannot get the buttons to work. Could you guys take a peek and see what I am doing wrong. Also, do you have any code that will allow me to get the selected data out of the listbox.

Thanks.

I have attached to module.