Results 1 to 7 of 7

Reference if Checkbox is checked on Worksheet_Change

Threaded View

LampCommandr Reference if Checkbox is... 04-07-2011, 04:32 PM
Colin Legg Re: Reference if Checkbox is... 04-07-2011, 05:02 PM
LampCommandr Re: Reference if Checkbox is... 04-07-2011, 05:48 PM
Colin Legg Re: Reference if Checkbox is... 04-07-2011, 05:56 PM
LampCommandr Re: Reference if Checkbox is... 04-07-2011, 06:10 PM
Colin Legg Re: Reference if Checkbox is... 04-07-2011, 06:22 PM
LampCommandr Re: Reference if Checkbox is... 04-11-2011, 10:48 AM
  1. #1
    Registered User
    Join Date
    05-12-2010
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    42

    Reference if Checkbox is checked on Worksheet_Change

    Hey folks,

    I have another one for anyone willing to help.

    I have 4 checkboxes on a worksheet and I am trying to reference each to set off a warning if the checkbox is checked in the following manner:

    Private Sub Worksheet_Change(ByVal Target As Range)
    
        If Not Intersect(Target, Me.Range("Zone1_Section_Data")) Is Nothing Then
            If ActiveSheet.Shapes("CheckBox_Zone1") = True And Range("Zone1_InsertValue").Value <> "" And Range("Zone1_IntervalType").Value = "Song Interval" And Range("Zone1_SongInterval").Value <> "" Then
                Range("Zone1_Warning").ClearContents
            Else
                Range("Zone1_Warning").Value = "**Please update Zone Data"
            End If
        End If
    
    End Sub
    The following gives me a run-time error - "Object doesn't support this property or method".

    Is there another way to reference whether the checkbox is checked or not? Is my code anywhere close?

    Thanks in advance.
    Last edited by LampCommandr; 04-11-2011 at 10:48 AM.

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