View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
axwack axwack is offline
external usenet poster
 
Posts: 13
Default How can I reuse function for a userform button

I have move up and move down buttons that move data lists up and down
on a list box.

The buttons are repeated on different tabs of the same form.

I want to pass a reference of the button ("Move Up") to my move up
code. How can I send a generic reference of a control to a function?

Is it

private sub function (Button as Control)

do code

end Sub

Any help is appreciated.