+ Reply to Thread
Results 1 to 2 of 2

Error in Checkbox - VBA

  1. #1
    Registered User
    Join Date
    01-20-2011
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    4

    Error in Checkbox - VBA

    Hi all

    I have an error while writing a small code on Form Controls Checkbox.

    What I want to do is: I have 2 checkboxes and I want to write a code that atleast one of them (or both) is on. If 1st checkbox is off and if I click the 2nd one off, the 1st one should be automatically on. Or if both of on, then no problem

    The code I wrote is like this:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    I have a problem on the if statement. Please help resolve the problem. Thanks a lot in advance...

    Moderator Note:

    Pls use code tags around your code next time as per forum rules.
    Last edited by Fotis1991; 12-05-2013 at 03:21 AM.

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Error in Checkbox - VBA

    Hi,

    Here you go. Hope this helps.

    Please Login or Register  to view this content.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Checkbox causing error
    By ezzzcel in forum Excel General
    Replies: 8
    Last Post: 03-02-2015, 12:33 AM
  2. Checkbox code error
    By blh in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-08-2012, 09:21 AM
  3. Checkbox error message
    By johnmcgregor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-10-2012, 07:18 AM
  4. checkbox error msg
    By waltron in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2010, 12:30 AM
  5. [SOLVED] Runtime error with vba and checkbox
    By SplatterKat in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-08-2006, 08:10 PM

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