Results 1 to 2 of 2

Uncheck checkbox WITHOUT running code on Auto_Close

Threaded View

  1. #1
    Registered User
    Join Date
    11-01-2007
    Posts
    1

    Uncheck checkbox WITHOUT running code on Auto_Close

    I must be missing something...Is there a way to uncheck a checkbox WITHOUT running the code assigned to it, so that when I Close, everything is reset to unchecked for when I Open again ? I have a macro set to colorize the font based on whether it is checked or not. On Open the font is default black, from there on any checking or unchecking goes green or red. If the checkbox was already False, everything is fine. If the checkbox was True, then a "click" happens and that in turn jumps to the CheckBox1_Click code which I don't want to happen on close.
     Sub Auto_Close()
    Range("A1").Select
    UserForm2("CheckBox1").Value = False
    ActiveWorkbook.Close savechanges:=True
    End Sub
    Private Sub CheckBox1_Click()
    Dim dRange1 As String
    Dim i As Integer
    i = 1
    dRange1 = "D1:D1"
    Color_CheckBox_Select dRange1, i
    End Sub
    Last edited by gorlosky; 11-01-2007 at 03:05 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1