Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dan dan is offline
external usenet poster
 
Posts: 113
Default Userform activate event question

I have a form with several listboxes buttons etc that is called up via a toolbar button which then calls a macro that does a frmMyform.show

I have several initializing tasks which must be done that I have put in the form activation event. on OK or quit out of my form I do a frmMyform.hide

All works well the first time around.

The next time however the activation events do not get fired (when I again do a frmMyform.show)

Am I opening and closing using the common practice? If I move my initializing events to the macro that calls the form in the first place it fails because the form object has not been created

Thanks in advance ...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Userform activate event question

try unloading the form rather than hiding it.

Is your code in the Activate Event or the Initialize event. The latter only
fires on creation of the form, not unhiding it.

--
Regards,
Tom Ogilvy

dan wrote in message
...
I have a form with several listboxes buttons etc that is called up via a

toolbar button which then calls a macro that does a frmMyform.show.

I have several initializing tasks which must be done that I have put in

the form activation event. on OK or quit out of my form I do a
frmMyform.hide.

All works well the first time around.

The next time however the activation events do not get fired (when I again

do a frmMyform.show).

Am I opening and closing using the common practice? If I move my

initializing events to the macro that calls the form in the first place it
fails because the form object has not been created.

Thanks in advance ...



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
activate a page of a Multipage in Userform Jeff Excel Discussion (Misc queries) 1 February 8th 08 06:16 PM
Password userform activate Moh Excel Discussion (Misc queries) 2 December 14th 07 09:01 AM
Activate sheet event Mike Fogleman Excel Programming 5 January 18th 04 11:02 PM
Userform.Activate Neil Excel Programming 2 September 15th 03 04:35 PM
Activate event Lynn[_3_] Excel Programming 2 September 13th 03 09:30 PM


All times are GMT +1. The time now is 03:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"