Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Userform Initialize

What is the difference between Userform Initialize and Userform
Activate?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Userform Initialize

I wasn't aware of the UserForm Activate event. Where can I find that?
The UserForm_Initialize method provides the facility to load list boxes,
combo boxes and other controls. It occurs during the UserForm.Show event.

" wrote:

What is the difference between Userform Initialize and Userform
Activate?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Userform Initialize

Sorry about that, Kyle. I learned something new. I had never used
UserForm.Activate before, but according to the VBA help files, there is such
a thing. I normally just use the UserForm.Show method which activates the
UserForm. So the difference is that the activate event simply sets focus to
the form whereas the initialize process allows the controls on the form to be
set up for use in one procedure.

" wrote:

What is the difference between Userform Initialize and Userform
Activate?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Userform Initialize

I see. That makes sense. Thanks for your response.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Userform Initialize

The Userform_Initialize event is "triggered" once the userform is loaded in
memory, it is helpful if you want a routine to load/run before the userform
gets visible.

The Userform_activate event is [once more] "triggered" when the user clicks
or calls the userform when it has already been loaded in memory and it has
lost the focus, or receives it for the first time, it is like the got_focus
event of any control.



--
--
--
Error: App. "GetUpAndWork.exe" couldn't be loaded, "ImToTired.exe" is
blocking it's execution.
--
Walter R . [zz]

wrote in message
ups.com...
| What is the difference between Userform Initialize and Userform
| Activate?
|




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
UserForm initialize event run when UserForm is shown [email protected] Excel Programming 2 June 13th 07 02:49 AM
initialize value in userform when opened strive4peace Excel Programming 2 December 6th 06 01:23 AM
UserForm initialize Arne Hegefors Excel Programming 8 September 8th 06 01:48 PM
userform initialize Patrick Simonds Excel Programming 1 August 4th 06 11:14 PM
initialize userform, using a sub natanz[_2_] Excel Programming 11 November 22nd 05 05:30 AM


All times are GMT +1. The time now is 02:59 AM.

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"