Checkbox macro question...

  • Thread starter theeyecollector
  • Start date
T

theeyecollector

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

I was just wondering if it's possible to assign different macros t
check boxes for when you tick and untick them - it would be reall
useful to have the facility to untick a box, (*as well* as keeping th
macro described above for when the box is ticked) and then have th
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'
proficient at Excel, but not amazing!
 
A

Amber_D_Laws

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
 
B

Bob Phillips

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top