+ Reply to Thread
Results 1 to 3 of 3

Checkbox macro question...

  1. #1
    Registered User
    Join Date
    02-01-2006
    Posts
    1

    Checkbox macro question...

    I'm currently creating a model to help with budgeting for a dance that's being organised at my school. I have checkboxes to tick as each thing is paid for, (e.g. marquee) and I've set up an appropriate macro to deduct the amount each item costs, from the total amount of money remaining.

    I was just wondering if it's possible to assign different macros to check boxes for when you tick and untick them - it would be really useful to have the facility to untick a box, (*as well* as keeping the macro described above for when the box is ticked) and then have the cost of that item added back to the total money remaining.

    Thanks for any help.
    (Oh, and if you can, please don't make it too technical - I'm proficient at Excel, but not amazing!)

  2. #2
    Forum Contributor
    Join Date
    12-30-2005
    Location
    Mobile, AL
    Posts
    102
    I think I have an idea of what might work for you. Something in a IF Then statement, but I would need to see the code you have so far. Can you post it?

    Regards,
    Amber


    Quote Originally Posted by theeyecollector
    I'm currently creating a model to help with budgeting for a dance that's being organised at my school. I have checkboxes to tick as each thing is paid for, (e.g. marquee) and I've set up an appropriate macro to deduct the amount each item costs, from the total amount of money remaining.

    I was just wondering if it's possible to assign different macros to check boxes for when you tick and untick them - it would be really useful to have the facility to untick a box, (*as well* as keeping the macro described above for when the box is ticked) and then have the cost of that item added back to the total money remaining.

    Thanks for any help.
    (Oh, and if you can, please don't make it too technical - I'm proficient at Excel, but not amazing!)

  3. #3
    Bob Phillips
    Guest

    Re: Checkbox macro question...

    Why not have your macro differentiate whether the checkbox is set or not?

    If it is a forms checkbox, you just test like so

    If ActiveSheet.CheckBoxes(Application.Caller).Value = 1 Then
    'checkbox ticked
    Else
    'not ticked
    End If


    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "theeyecollector"
    <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm currently creating a model to help with budgeting for a dance that's
    > being organised at my school. I have checkboxes to tick as each thing is
    > paid for, (e.g. marquee) and I've set up an appropriate macro to deduct
    > the amount each item costs, from the total amount of money remaining.
    >
    > I was just wondering if it's possible to assign different macros to
    > check boxes for when you tick and untick them - it would be really
    > useful to have the facility to untick a box, (*as well* as keeping the
    > macro described above for when the box is ticked) and then have the
    > cost of that item added back to the total money remaining.
    >
    > Thanks for any help.
    > (Oh, and if you can, please don't make it too technical - I'm
    > proficient at Excel, but not amazing!)
    >
    >
    > --
    > theeyecollector
    > ------------------------------------------------------------------------
    > theeyecollector's Profile:

    http://www.excelforum.com/member.php...o&userid=31059
    > View this thread: http://www.excelforum.com/showthread...hreadid=507330
    >




+ 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