#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default help needed

Hi

Please help on the following issue:

I have to check if one of the check boxes in the following cells is
checked I need a macro that checks if the check box in cell G14 is
checked in sheet Account Tracker. If its checked then I want to do the
formula in G17, if the check box in H14 is checked I want to do the
formula in h17 & if the checkbox in I14 is checked I want to do the
formula in cell I17.

A second thing I need is that based on the above logic as there will
be only one set of values in g17 or h17 or i17 .If the values in g17
or h17 or i17 are negative than I want to do the calculation in j18


thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,203
Default help needed

If you used the checkboxes from the Forms toolbar and not from the Control
Toolbox, you can Link the checkbox to a cell in the workbook. In this case
you could link the checkboxes to the cell behind them, as to G14,H14 and I14.

Format the checkboxes to have a solid fill and it'll hide the contents of
the cell behind it. When a box is checked, its linked cell holds TRUE and if
it is unchecked then it holds FALSE.

So at G17, your formula could be something like:
=IF(G14=True,A1+B4-3,"") or =IF(G14=True,A1+B4-3,0)

Same for the formulas at H17 and I 17, just have them test the appropriate
linked cell.

As for J18, the formula to test for any one of G17, H17 or I17 being
negative would be:
=IF(OR(G17<0,H17<0,I17<0),your formula here,0)

And if you didn't use the checkboxes from the Forms toolbar, well, I'd give
serious consideration to doing so - it'll make your life much easier in this
situation. Otherwise we have to write code for each of the checkboxes from
the Controls Toolbox to get along with this.


"Dave" wrote:

Hi

Please help on the following issue:

I have to check if one of the check boxes in the following cells is
checked I need a macro that checks if the check box in cell G14 is
checked in sheet Account Tracker. If its checked then I want to do the
formula in G17, if the check box in H14 is checked I want to do the
formula in h17 & if the checkbox in I14 is checked I want to do the
formula in cell I17.

A second thing I need is that based on the above logic as there will
be only one set of values in g17 or h17 or i17 .If the values in g17
or h17 or i17 are negative than I want to do the calculation in j18


thanks in advance
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSV Help needed LostInNY Excel Programming 4 July 8th 09 12:46 AM
Deleting Rows With Non-Needed Data between Needed Data Daren Excel Worksheet Functions 2 September 30th 08 06:47 PM
MVP HELP NEEDED ! Jane Excel Worksheet Functions 5 February 6th 07 10:48 AM
help needed Gary Excel Worksheet Functions 1 December 6th 06 12:32 AM
Help Needed Eric Excel Discussion (Misc queries) 1 June 23rd 06 03:16 AM


All times are GMT +1. The time now is 01:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"