LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default Strange userform activate behavior

I have a userform with the code below. You can see I have "shut off" part of
the code. When the userform activates it is supposed to enable a continue
button if certain conditions are met. However, when it activates the command
button it also fires it (the code in the command button closes the userform
and opens the next userform). This is so strange???

Public Sub UserForm_Activate()
Set WSCal = Sheets("Cal")
WSCal.Range("HealthAnswerRange,HealthCmt2").ClearC ontents
With usfHealth
.cmbCt.Enabled = False
' If .chbxKid = True Or .chbxHeart = True Or .chbxEye = True Or
..chbxA1C = True Or _
' .chbxStroke = True Or .chbxAmputation = True Or .chbxFoot = True Or
..chbxGlucose = True Or _
' .optbutNone = True Then .cmbCt = True
' .lblHealth.Caption = WSCal.Range("HealthQ")
End With
Application.ScreenUpdating = False
End Sub


--
Thanks
Shawn
 
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
Strange behavior Patrick Simonds Excel Programming 2 November 25th 06 06:26 PM
VBA - Strange behavior MVM Excel Programming 0 June 12th 06 07:44 PM
Strange TAB behavior m davidson Excel Programming 4 May 28th 06 06:09 PM
Strange behavior DeRussie Setting up and Configuration of Excel 4 November 26th 05 05:41 PM
Strange behavior. Wiley Coyote Excel Discussion (Misc queries) 7 October 18th 05 04:35 PM


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