corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Any MS Excel experts » Post Reply

Post Reply
Who Can Post? All users can post new topics and all users can reply.
Icon:
Formatting Mode:
Normal
Advanced
Help

Insert Bold text Insert Italicized text Insert Underlined text Insert Centered text Insert a Hyperlink Insert Email Hyperlink Insert an Image Insert Code Formatted text Insert Quoted text
Message:
HTML is Off
Smilies are On
BB Code is On
[img] Code is On
Post Options: Disable smileys?
Turn BBCode off?
Receive email notification of new replies?

blebo

posted on 4th Jun 04 at 14:19

In VB

If Range("??") = True then
cells("??").formular1c1 = Range("??") + 1

else

end if


Chris Bingham

posted on 4th Jun 04 at 13:28

quote:
Originally posted by GSiSteve
ok iv got it to flick a cell (H30) from 0 to 1 when i check or uncheck a box, now i have another check box and i want it to add or subtract to the figure in H30 when i check or uncheck the box?


Have a column which has all the 1's and 0's and then do a sum to add the totals.


Steve

posted on 4th Jun 04 at 13:10

sorry i am using tick boxs, they are called check boxs in excel


Steve

posted on 4th Jun 04 at 13:09

ok iv got it to flick a cell (H30) from 0 to 1 when i check or uncheck a box, now i have another check box and i want it to add or subtract to the figure in H30 when i check or uncheck the box?


HeNdie

posted on 4th Jun 04 at 13:08

instead of a checking box, have a tick box, when the tick box is clicked instead of checked, it does the macro, of what u want to happen, ie a box loses a number or somet.


Steve

posted on 4th Jun 04 at 13:07

im trying to a macro but cant do it, im not sure of the commands


Chris Bingham

posted on 4th Jun 04 at 13:05

quote:
Originally posted by HeNdie
do a macro.


A macro to do what? Put in rubbish answers on posts? ;)


Chris Bingham

posted on 4th Jun 04 at 13:05

You will need an IF statement for each of the outputs so that it turns the output from TRUE to 1.


HeNdie

posted on 4th Jun 04 at 13:01

do a macro.


Steve

posted on 4th Jun 04 at 12:57

wher do i put this if statement?


Chris Bingham

posted on 4th Jun 04 at 12:54

Ok, this is how I just did it.

When you create a checkbox, right click it and select properties.

In the properties menu, you will see an option for 'Linked Cell'

type in a cell location. When the box is checked, TRUE appears in the linked cell location.

Then I would do an IF statement to say for example =if(A1=TRUE,1,0)

The do a sum of all your output cells - all the checked ones should have a 1, all non checked will have a 0. So when a new one is checked, it will increment by one.



[Edited on 04-06-2004 by Chris Bingham]


Steve

posted on 4th Jun 04 at 12:40

Im trying to do a VBScript in Excel that updates a Cell in Excel when an ActiveX Checkbox is checked, i.e. if its ticked say for instance cell B7 increases its number by 1

Any ideas i cant quite get it?