+ Reply to Thread
Results 1 to 3 of 3

checkbox event handling function

  1. #1
    nevwalters
    Guest

    checkbox event handling function

    how to get a cell to handle a checkbox event to do a function/calculation
    using other cell data? Have tried this code in cell, =IF(CheckBox2_Click() =
    TRUE,L49 + (L49 * F41 / 100),0)

  2. #2
    Max
    Guest

    Re: checkbox event handling function

    "nevwalters" wrote:
    > how to get a cell to handle a checkbox event to do a function/calculation
    > using other cell data? Have tried this code in cell, =IF(CheckBox2_Click() =
    > TRUE,L49 + (L49 * F41 / 100),0)


    Assuming it's a forms checkbox,

    Right-click on the checkbox > Format Control
    Enter as the Cell Link: X49 (say), click OK

    Then we could put in say, M49:
    =IF(X49, L49 + (L49 * F41 / 100),0)
    --
    Max
    Singapore
    http://savefile.com/projects/236895
    xdemechanik
    ---

  3. #3
    Biff
    Guest

    Re: checkbox event handling function

    Hi!

    Link the checkbox to a cell then refer to that cell:

    Linked cell = A1

    =IF(A1,L49 + (L49 * F41 / 100),0)

    Or:

    =IF(A1=TRUE,L49 + (L49 * F41 / 100),0)

    It looks like you're using a ckbx from the control toolbox so open the
    control toolbox. Enter design mode. Right click on the ckbx and select
    Properties. Find LinkedCell and enter the cell you want to link to this
    ckbx, in this example, A1. Close the Properties dialog, exit design mode,
    close the control toolbox.

    Biff

    "nevwalters" <[email protected]> wrote in message
    news:[email protected]...
    > how to get a cell to handle a checkbox event to do a function/calculation
    > using other cell data? Have tried this code in cell, =IF(CheckBox2_Click()
    > =
    > TRUE,L49 + (L49 * F41 / 100),0)




+ Reply to Thread

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