Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Initialize event doesn't work

Hi Pop,

The Initialize event only fires one time, when the UserForm is first
created. If you hide and then re-show the UserForm and you want to run some
code, you should use the Activate event instead. This event will fire
whenever the UserForm is displayed from a hidden state.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


"Pop" wrote in message
...
Dear all,
I have create a form A and in the initialize event I have write some codes

in it.
But when I load the form second times, it seem that those code didn't work

anymore.
What happen is that I click the terminate button(the X button on the top

right corrner) on form A and load & show form B, from form B I load form A
again and all the controls in form A didn't works anymore.

How to disable the terminate button on a form?



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
work book open _ event Hassan Excel Worksheet Functions 1 July 3rd 08 12:49 PM
Event code won't work marker68 Excel Discussion (Misc queries) 2 April 2nd 08 01:13 AM
Change event fails to work Mark F Excel Worksheet Functions 3 November 10th 05 12:08 PM
Generic questions about variable scope the Initialize event TBA[_2_] Excel Programming 4 January 12th 04 03:42 PM
Sheet event doesn't work in '97 Gareth[_3_] Excel Programming 14 November 2nd 03 11:36 PM


All times are GMT +1. The time now is 07:01 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"