LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Button Programming

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.


 
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
Programming a button Larry G. Excel Programming 1 March 13th 07 02:36 PM
programming a button pappaz Excel Programming 2 February 26th 07 03:56 AM
programming button again Hendri Adriaens Excel Programming 5 February 14th 07 11:37 AM
programming button Mike Excel Programming 8 February 13th 07 10:51 PM
Programming behind a button DRE Excel Programming 2 July 18th 03 03:40 PM


All times are GMT +1. The time now is 08:14 AM.

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

About Us

"It's about Microsoft Excel"