PC Review


Reply
Thread Tools Rate Thread

Button Programming

 
 
Janazar
Guest
Posts: n/a
 
      1st Apr 2009
Sorry if I'm not providing much on this. I'm starting from scratch and a bit
lost.

I have a spreadsheet that has a list of users on it. Next to each user I
have added an "In Attendance" field with check boxes. A field has a point
total in it. When users attend certain parts of an event, they earn points,
which are added to the point total field. The things that earn points can
happen quickly and attendance can change throughout the event.

What I want to do is add a button to the spreadsheet that, when clicked,
adds say five points to each user with the "In Attendance" check box checked.

I'm not asking someone to make this for me, but I'm not even sure where to
go to look up something like this. Has anyone done anything similar? If so,
any help would be appreciated.
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      1st Apr 2009
Why not just put some code in the Checkbox control that adds the points?
Something similar to this psuedo code snippet.

Private Sub Checkbox1_Click()
Dim SomeCell As Range
SomeCell = Range("B6")
If Checkbox1.Value = True Then
SomeCell = SomeCell.Value + 5
End If
Checkbox1.Value = False
End Sub

The principle of the above code is to assign a variable to the cell where
the persons points will be accumulated. As the person clicks the checkbox
that they attended the event, or a session of the event, then the points are
added to the accumulator cell, in this case B6. The checkbox then resets to
False, or empty.

"Janazar" <(E-Mail Removed)> wrote in message
news:EFD04DCB-435F-44DA-9BE7-(E-Mail Removed)...
> Sorry if I'm not providing much on this. I'm starting from scratch and a
> bit
> lost.
>
> I have a spreadsheet that has a list of users on it. Next to each user I
> have added an "In Attendance" field with check boxes. A field has a point
> total in it. When users attend certain parts of an event, they earn
> points,
> which are added to the point total field. The things that earn points can
> happen quickly and attendance can change throughout the event.
>
> What I want to do is add a button to the spreadsheet that, when clicked,
> adds say five points to each user with the "In Attendance" check box
> checked.
>
> I'm not asking someone to make this for me, but I'm not even sure where to
> go to look up something like this. Has anyone done anything similar? If
> so,
> any help would be appreciated.



 
Reply With Quote
 
Janazar
Guest
Posts: n/a
 
      1st Apr 2009
That's closer than I've been, but there could be many people attending the
event. When actions occur that would accumulate points, I want the person
handling this to be able to click one button and add the points to all those
with the box checked. This would allow them to only have to check and uncheck
boxes at other times when people come and go.
Maybe the checkbox isn't the answer. I just want to make it simple, as the
person doing this will have other duties as well.

"JLGWhiz" wrote:

> Why not just put some code in the Checkbox control that adds the points?
> Something similar to this psuedo code snippet.
>
> Private Sub Checkbox1_Click()
> Dim SomeCell As Range
> SomeCell = Range("B6")
> If Checkbox1.Value = True Then
> SomeCell = SomeCell.Value + 5
> End If
> Checkbox1.Value = False
> End Sub
>
> The principle of the above code is to assign a variable to the cell where
> the persons points will be accumulated. As the person clicks the checkbox
> that they attended the event, or a session of the event, then the points are
> added to the accumulator cell, in this case B6. The checkbox then resets to
> False, or empty.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming a button =?Utf-8?B?TGFycnkgRy4=?= Microsoft Excel Programming 1 13th Mar 2007 02:36 PM
programming button again Hendri Adriaens Microsoft Excel Programming 5 14th Feb 2007 11:37 AM
programming button Hendri Adriaens Microsoft Excel Programming 9 13th Feb 2007 10:51 PM
Programming a button SW Microsoft Outlook VBA Programming 1 8th Oct 2003 03:47 PM
Programming behind a button DRE Microsoft Excel Programming 2 18th Jul 2003 03:40 PM


Features
 

Advertising
 

Newsgroups
 


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