PC Review


Reply
Thread Tools Rate Thread

Can I update User Form CheckMark without running _Click code...?

 
 
=?Utf-8?B?TWlrZVp6?=
Guest
Posts: n/a
 
      6th Jun 2007
Hi,
During form initialization, I want to set values of certian check marks
based on what columns are hidden in a workbook.

The checkmark_Click routine has code but I don't want to run it when I
assign the value on ititialization.

Is there a way to do this?
I tried chkMark.value and also tried disableing events but that didn't work
either.

Any help would be appreciated.

Thanks,
MikeZz
 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      6th Jun 2007
If you really disabled events, how did the checkmark_Click event fire ?

Something wrong with your code I suspect.

NickHK

"MikeZz" <(E-Mail Removed)> wrote in message
news:7382F6C9-A97C-4127-B6A1-(E-Mail Removed)...
> Hi,
> During form initialization, I want to set values of certian check marks
> based on what columns are hidden in a workbook.
>
> The checkmark_Click routine has code but I don't want to run it when I
> assign the value on ititialization.
>
> Is there a way to do this?
> I tried chkMark.value and also tried disableing events but that didn't

work
> either.
>
> Any help would be appreciated.
>
> Thanks,
> MikeZz



 
Reply With Quote
 
Norman Jones
Guest
Posts: n/a
 
      6th Jun 2007
Hi Mike,

The EnableEvents property ha no effect on
Userform events.

Try using a module level variable selectively to
disable the event(s) of interest.

For example, try:

'=============>>
Option Explicit

Private blDisable As Boolean

'------------------>>
Private Sub UserForm_Initialize()
blDisable = True
Me.CheckBox1.Value = True
blDisable = False
End Sub

'------------------>>
Private Sub CheckBox1_Click()
If blDisable Then
Exit Sub
End If
'your code, e.g.:
MsgBox "Hi"
End Sub
'<<=============



---
Regards,
Norman


"MikeZz" <(E-Mail Removed)> wrote in message
news:7382F6C9-A97C-4127-B6A1-(E-Mail Removed)...
> Hi,
> During form initialization, I want to set values of certian check marks
> based on what columns are hidden in a workbook.
>
> The checkmark_Click routine has code but I don't want to run it when I
> assign the value on ititialization.
>
> Is there a way to do this?
> I tried chkMark.value and also tried disableing events but that didn't
> work
> either.
>
> Any help would be appreciated.
>
> Thanks,
> MikeZz



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running an UPDATE query in code to update a subform that reflects anunderlying Table nouveauricheinvestments@gmail.com Microsoft Access Forms 0 10th Nov 2008 07:40 PM
Running All of My Rules w/out Having to Checkmark Each One =?Utf-8?B?a2phbWVz?= Microsoft Outlook Contacts 3 28th Jun 2007 03:28 PM
How can I update VBA code in a module that is running my VBA code? Gummy Microsoft Excel Programming 3 12th Jun 2007 06:26 PM
How do I make a form checkmark look like a checkmark and not an X =?Utf-8?B?Q2hyaXM=?= Microsoft Word Document Management 9 8th Jun 2006 04:02 PM
Update Checkmark =?Utf-8?B?cG9rZGJ6?= Microsoft Access Form Coding 2 18th Feb 2005 05:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:14 AM.