It's quite a stupid question...
how do i get to run a sub as the form loads?
smth like
sub myform_initialize()
or
sub myform_load()
but it doesn't work...
It's quite a stupid question...
how do i get to run a sub as the form loads?
smth like
sub myform_initialize()
or
sub myform_load()
but it doesn't work...
The initialize event is always named
Private Sub Userform_Initialize()
and you can use that to run your code. It is always best to enter event
declarations by selecting them from the dropdowns at the top of the module.
Then you wouldn't have tried to use a name like myfornm_initialize().
There is no Load event - that is what initialize is.
There is an Activate event.
--
Regards,
Tom Ogilvy
"snaggy^^" <snaggy@discussions.microsoft.com> wrote in message
news:DA36C2AD-C553-42BF-B61B-1C849AB7558C@microsoft.com...
> It's quite a stupid question...
> how do i get to run a sub as the form loads?
>
> smth like
>
> sub myform_initialize()
> or
> sub myform_load()
>
> but it doesn't work...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks