+ Reply to Thread
Results 1 to 7 of 7

Tick checkbox if a certain cell is not empty.

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    Lasuanne
    MS-Off Ver
    Excel 2010
    Posts
    7

    Tick checkbox if a certain cell is not empty.

    Hello everyone,

    Thanks for this awesome forum!

    I am new to here and also to VBA. What I am looking for is a way to have a checkbox automatically ticked (CheckBox6.Value = True) if a certain cell is not empty.
    To be more precise, it is a form where you choose different options by ticking checkboxes and then enter a money amount in the cells next to the boxes. I cannot link the cells to the boxes because they are already linked to other cells. So I am looking for a formula that looks like this, but I am missing the first part and the correct syntax:

    Private Sub ???????
    If CELL G 33 = NOT EMPTY?? then
    CheckBox6.Value = True
    End If
    End Sub

    I thank you in advance if you could help me with this!
    Cheers
    Last edited by jazzy747; 11-12-2012 at 04:59 AM.

  2. #2
    Registered User
    Join Date
    11-07-2012
    Location
    Lasuanne
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Tick checkbox if a certain cell is not empty.

    Hello again,

    If my request is not complete enough I am willing to give more details in order to enable someone to help me.
    Please someone help me!

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Tick checkbox if a certain cell is not empty.

    hi jazzy747, the posted workbook sample is better than thousands of words ...It would be helpful if you can provide one

  4. #4
    Registered User
    Join Date
    11-07-2012
    Location
    Lasuanne
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Tick checkbox if a certain cell is not empty.

    Thanks watersev, here’s the document.

    It is a form that clients will have to fill out. Most of the cells will be blocked. Users can tick boxes and enter $ amounts in column “G”.
    Since column “I” is only calculating when the boxes are ticked, I would like to have the checkbox automatically ticked when the user enters a number in column “G” without actually ticking the box. This enables sort of a shortcut (you don’t have to go through the step “check the box”).

    Is this information clear enough?
    Thanks in advance for taking a look at it.
    Attached Files Attached Files

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: Tick checkbox if a certain cell is not empty.

    Here is a solution. [jazzy747=CheckBoxes-Forum.xlsm] Great username.

    This solution takes advantage of the fact that you link, the checkboxes to other cells on the same row as your amounts. The code you were looking for is:

    Please Login or Register  to view this content.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  6. #6
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Tick checkbox if a certain cell is not empty.

    different option, no linked cells in L column, no formulas
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-07-2012
    Location
    Lasuanne
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Tick checkbox if a certain cell is not empty.

    Many thanks to both of you, I'll have a look at your solutions tmw at work.

    Thanks for taking time for this!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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