As a starting vba-programmer, with some old basic-programming background, I can't understand why the solutions as set hereabove are not working for me.
Both solutions as given by rorubin and ADoozer returned errors
I've tried both solutions separate from another first in the userform code and later in a separate module with the activation-command 'DisableX Me' in Userform_activate and the deactivation-command 'EnableX Me' in the commandbutton_click code which closes the form
in case of rorubin I got the error on :
'Public Function DisableX(frm As Form)'
in case of Adoozer I got the eroor on :
'Private Function EnableX(frm As Form)'
all the times the error message read:
'Compile error'
'a by user defined variable-type is not defined'
pardon the translation-errors)
Since all types are declared the only answer I could think of was that the code was placed wrong therefor I tried the different locations. This didn't resolve it. Now I am thinking that I placed the call 'En/DisableX Me' wrong but I can't think of an answer.
In good order, I'm working with a p4, 2.6, with xp-pro, sp2 and office2000 vba.
Please advise,
thnx in advance