Hi, I want to create a general function which accepts either a string or a listbox. I've tried to use a variant but this doesn't work.
Public Sub FnDoStuff(IdStringOrListbox As Variant)
'Do stuff here..
End Sub
How can I get the function to accept either a string or a listbox?
Public Sub FnDoStuff(IdStringOrListbox As Variant)
'Do stuff here..
End Sub
How can I get the function to accept either a string or a listbox?