Consulting

Results 1 to 4 of 4

Thread: Solved: Clear check box on open

  1. #1
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location

    Solved: Clear check box on open

    I have done this be for but have lost the code. I want to clear the contents of the check boxes in my worksheet on open but using
    Range("A1:A4").ClearContents does not work. In fact I have tried ClearAll and it does not either. Any ideas?
    Peace of mind is found in some of the strangest places.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [VBA]
    Dim cb As CheckBox
    For Each cb In ActiveSheet.CheckBoxes
    cb.Value = False
    Next cb
    [/VBA]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    Knew it was something like that. Thanks
    Peace of mind is found in some of the strangest places.

  4. #4
    VBAX Regular
    Joined
    Aug 2004
    Location
    London, England
    Posts
    52
    Location
    what's goin on here? if i type activesheet.Checkboxes in my immediate window, then highlight 'Checkboxes' and press F1, I received the following message:

    Hidden Language Element

    You have requested Help for a language element that is hidden, and therefore unavailable for programmatic access.

    Have you been dabbling with the occult??

Posting Permissions

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