LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
avi avi is offline
external usenet poster
 
Posts: 195
Default EnableEvents problem

Hello,

I have a form that contains an OptionButton that I want to initialize
as true

In order to disable the message box I code it like that

Sub userform_initialize()
Application.EnableEvents = False
OptionButton1.Value = True
Application.EnableEvents = True
End Sub

Private Sub OptionButton1_Click()
MsgBox "Fired!"
End Sub

When the userform is loaded, i expect not to see the msgbox as events
are disabled. The msgbox still appears. Do I miss something?

Thanks
Avi

 
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
EnableEvents clara Excel Programming 2 April 13th 07 05:02 PM
EnableEvents doesn't work Stefi Excel Programming 7 April 5th 07 02:30 PM
Application.EnableEvents help Alex Excel Programming 4 August 18th 06 06:57 PM
Application.EnableEvents Terry Excel Programming 2 April 2nd 04 08:25 PM
Stopping the use of enableevents Steven Revell[_3_] Excel Programming 3 November 21st 03 07:16 AM


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