Can anyone help me with the following? I'm pretty much a VBA virgin so this is probably a very stupid question:
I have written a public function to convert a text string to propercase. However, when I try to write a generic event procedure which I can use to call the function from any number of different fields I keep getting errors. Can anyone help?
PS the procedure I had written which doesn't work was as follows:
Function Proper()
Dim ctl As Control
ctl = Screen.ActiveControl
ctl = ProperText(ctl)
End Function
I have written a public function to convert a text string to propercase. However, when I try to write a generic event procedure which I can use to call the function from any number of different fields I keep getting errors. Can anyone help?
PS the procedure I had written which doesn't work was as follows:
Function Proper()
Dim ctl As Control
ctl = Screen.ActiveControl
ctl = ProperText(ctl)
End Function