Results 1 to 13 of 13

Thread: *Resolved* Checkbox VBA Syntax?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2004
    Location
    Right here
    Posts
    275

    Resolved *Resolved* Checkbox VBA Syntax?

    I've got a simple piece of code in Excel VBA which is:

    Code:
    Sub CheckBox1_Click()
    If CheckBox1.Value = True Then
        Range("A1").Value = 1
    Else
        Range("A1").Value = 0
    End If
    
    End Sub
    which is supposed to make 1 or 0 appear in cell A1 depending on whether or not a checkbox is ticked. However all I get is the error message 'Runtime error 424. Object required'.

    I don't know what this means or why the code doesn't work and I can't find anything in Excel Help which explains what's wrong!

    Anyone help?

    Cheers
    -Rob
    Last edited by TheRobster; Nov 12th, 2004 at 08:56 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width