Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Use of check boxes

Hi,

I am devising a spreadsheet to log the progress on a list of clients,
through a set series of procedures. The idea is that each time a certain
stage has been passed, the corresponding date is entered in the relevant
column, at that client's row.

I have thought about using check boxes by each date column, so that when the
box is checked, the corresponding date is automatically filled in.

I know that one can 'tie' a cell to a check box, and it will flip from
'True' to 'False' accordingly. I should like that box to show today's date
when ticked, and revert to blank when unticked.

If it works, there will be several hundred of these little critters, and
copying them can be a problem - they all want to 'tie' themselves to the same
cell, when I use the normal copy and paste function.

If anyone can advise on code to get the tied cell to show correct info.
rather than just True/False, I'd be much obliged.

If anyone can advise on how to get copied check boxes automatically to refer
to the next cell down, or in line, or some kind of automation/macro that I
could set up, then I'd be even more grateful.

If anyone thinks that the check-box idea is fatally flawed and/or can
propose a more elegant solution, then please let me have your thoughts.

Thank you,

Lambs
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Use of check boxes


Instead of directly modifying the cell data in the spreadsheet ...

Create a userform with the various stages identified (with check
boxes)

The client can be selected from a dropdown, and the checkboxes can
display the current status of that client.

Then, when the "next" checkbox is clicked, the (current?) date is
entered into the appropriate column.


--
weavtennis
------------------------------------------------------------------------
weavtennis's Profile: http://www.excelforum.com/member.php...fo&userid=3634
View this thread: http://www.excelforum.com/showthread...hreadid=514351

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Use of check boxes

Weavtennis,

Thanks for your reply. I see some merit in User Forms, but the idea is for
an operator to deal with a number of clients in quick succession, which means
ticking a few boxes on-screen, and taking a couple of seconds to deal with,
say, half a dozen clients.

It follows that firing up a User Form for each client would slow things down
- certainly the intended users of this spreadsheet would find it overly
complex.

Many thanks, all the same.

Regards,

Lambs
"weavtennis" wrote:


Instead of directly modifying the cell data in the spreadsheet ...

Create a userform with the various stages identified (with check
boxes)

The client can be selected from a dropdown, and the checkboxes can
display the current status of that client.

Then, when the "next" checkbox is clicked, the (current?) date is
entered into the appropriate column.


--
weavtennis
------------------------------------------------------------------------
weavtennis's Profile: http://www.excelforum.com/member.php...fo&userid=3634
View this thread: http://www.excelforum.com/showthread...hreadid=514351


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Use of check boxes

Here is a way without checkboxes. All you do is select a flagging column (I
have defined, B,D,F,H), and the date pops up next door.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Const WS_RANGE As String = "B:B,D:D,F:F,H:H"

If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
.Font.Name = "Marlett"
.Value = "a"
.Offset(0, 1).Value = Date
.Offset(0, 1).NumberFormat = "dd mmm"
End With
End If

End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Lambs" wrote in message
...
Hi,

I am devising a spreadsheet to log the progress on a list of clients,
through a set series of procedures. The idea is that each time a certain
stage has been passed, the corresponding date is entered in the relevant
column, at that client's row.

I have thought about using check boxes by each date column, so that when

the
box is checked, the corresponding date is automatically filled in.

I know that one can 'tie' a cell to a check box, and it will flip from
'True' to 'False' accordingly. I should like that box to show today's date
when ticked, and revert to blank when unticked.

If it works, there will be several hundred of these little critters, and
copying them can be a problem - they all want to 'tie' themselves to the

same
cell, when I use the normal copy and paste function.

If anyone can advise on code to get the tied cell to show correct info.
rather than just True/False, I'd be much obliged.

If anyone can advise on how to get copied check boxes automatically to

refer
to the next cell down, or in line, or some kind of automation/macro that I
could set up, then I'd be even more grateful.

If anyone thinks that the check-box idea is fatally flawed and/or can
propose a more elegant solution, then please let me have your thoughts.

Thank you,

Lambs



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Use of check boxes

Dear Bob,

That's classy. You've saved me the next dozen weekends or so, of
meticulously editing hundreds of rows...

With my hazy knowledge of Basic, I can kind of see what's going on, but:

How do you trip the cell back to an empty state?

Do I need an "Else...." line, or would should I stick another "If" condition
in there?

I realise that it's something to do with the "Not Intersect.... is Nothing"
but my mother always taught me that double-negatives were a "No-no." If
you'll pardon the pun.

Presumably I can say if the "Not Intersect" is NOT Nothing...?

Could I get it to work off the back of a double-click, so that it's not eay
accidentally to over-write, or am I taking the mickey?

Kind regards and thanks once again,

Lambs

"Bob Phillips" wrote:

Here is a way without checkboxes. All you do is select a flagging column (I
have defined, B,D,F,H), and the date pops up next door.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Const WS_RANGE As String = "B:B,D:D,F:F,H:H"

If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
.Font.Name = "Marlett"
.Value = "a"
.Offset(0, 1).Value = Date
.Offset(0, 1).NumberFormat = "dd mmm"
End With
End If

End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Lambs" wrote in message
...
Hi,

I am devising a spreadsheet to log the progress on a list of clients,
through a set series of procedures. The idea is that each time a certain
stage has been passed, the corresponding date is entered in the relevant
column, at that client's row.

I have thought about using check boxes by each date column, so that when

the
box is checked, the corresponding date is automatically filled in.

I know that one can 'tie' a cell to a check box, and it will flip from
'True' to 'False' accordingly. I should like that box to show today's date
when ticked, and revert to blank when unticked.

If it works, there will be several hundred of these little critters, and
copying them can be a problem - they all want to 'tie' themselves to the

same
cell, when I use the normal copy and paste function.

If anyone can advise on code to get the tied cell to show correct info.
rather than just True/False, I'd be much obliged.

If anyone can advise on how to get copied check boxes automatically to

refer
to the next cell down, or in line, or some kind of automation/macro that I
could set up, then I'd be even more grateful.

If anyone thinks that the check-box idea is fatally flawed and/or can
propose a more elegant solution, then please let me have your thoughts.

Thank you,

Lambs






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Use of check boxes

I personally don't like the double-click event (I often fail to
double-click, and it gets two single clicks, and mayhem), but if you want
it, here it is. I have also added a clear-down option which happens if you
double-click a cell currently flagged.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
Const WS_RANGE As String = "B:B,D:D,F:F,H:H"

If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
If .Value < "a" Then
.Font.Name = "Marlett"
.Value = "a"
.Offset(0, 1).Value = Date
.Offset(0, 1).NumberFormat = "dd mmm"
Else
.Value = ""
.Offset(0, 1).Value = ""
End If
End With
End If

End Sub


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Lambs" wrote in message
...
Dear Bob,

That's classy. You've saved me the next dozen weekends or so, of
meticulously editing hundreds of rows...

With my hazy knowledge of Basic, I can kind of see what's going on, but:

How do you trip the cell back to an empty state?

Do I need an "Else...." line, or would should I stick another "If"

condition
in there?

I realise that it's something to do with the "Not Intersect.... is

Nothing"
but my mother always taught me that double-negatives were a "No-no." If
you'll pardon the pun.

Presumably I can say if the "Not Intersect" is NOT Nothing...?

Could I get it to work off the back of a double-click, so that it's not

eay
accidentally to over-write, or am I taking the mickey?

Kind regards and thanks once again,

Lambs

"Bob Phillips" wrote:

Here is a way without checkboxes. All you do is select a flagging column

(I
have defined, B,D,F,H), and the date pops up next door.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Const WS_RANGE As String = "B:B,D:D,F:F,H:H"

If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
.Font.Name = "Marlett"
.Value = "a"
.Offset(0, 1).Value = Date
.Offset(0, 1).NumberFormat = "dd mmm"
End With
End If

End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Lambs" wrote in message
...
Hi,

I am devising a spreadsheet to log the progress on a list of clients,
through a set series of procedures. The idea is that each time a

certain
stage has been passed, the corresponding date is entered in the

relevant
column, at that client's row.

I have thought about using check boxes by each date column, so that

when
the
box is checked, the corresponding date is automatically filled in.

I know that one can 'tie' a cell to a check box, and it will flip from
'True' to 'False' accordingly. I should like that box to show today's

date
when ticked, and revert to blank when unticked.

If it works, there will be several hundred of these little critters,

and
copying them can be a problem - they all want to 'tie' themselves to

the
same
cell, when I use the normal copy and paste function.

If anyone can advise on code to get the tied cell to show correct

info.
rather than just True/False, I'd be much obliged.

If anyone can advise on how to get copied check boxes automatically to

refer
to the next cell down, or in line, or some kind of automation/macro

that I
could set up, then I'd be even more grateful.

If anyone thinks that the check-box idea is fatally flawed and/or can
propose a more elegant solution, then please let me have your

thoughts.

Thank you,

Lambs






  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Use of check boxes

Cap'n Bob,

You are a star.

Even better, you are well on your way to making me look good at Excel - in
my office, I am the 'proverbial' one-eyed man in the land of the blind, if
you catch my drift.

As to not liking double-clicks, I am guessing that you might want to cut
back on the caffeine...?

Best regards,

Lambs



"Bob Phillips" wrote:

I personally don't like the double-click event (I often fail to
double-click, and it gets two single clicks, and mayhem), but if you want
it, here it is. I have also added a clear-down option which happens if you
double-click a cell currently flagged.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
Const WS_RANGE As String = "B:B,D:D,F:F,H:H"

If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
If .Value < "a" Then
.Font.Name = "Marlett"
.Value = "a"
.Offset(0, 1).Value = Date
.Offset(0, 1).NumberFormat = "dd mmm"
Else
.Value = ""
.Offset(0, 1).Value = ""
End If
End With
End If

End Sub


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Lambs" wrote in message
...
Dear Bob,

That's classy. You've saved me the next dozen weekends or so, of
meticulously editing hundreds of rows...

With my hazy knowledge of Basic, I can kind of see what's going on, but:

How do you trip the cell back to an empty state?

Do I need an "Else...." line, or would should I stick another "If"

condition
in there?

I realise that it's something to do with the "Not Intersect.... is

Nothing"
but my mother always taught me that double-negatives were a "No-no." If
you'll pardon the pun.

Presumably I can say if the "Not Intersect" is NOT Nothing...?

Could I get it to work off the back of a double-click, so that it's not

eay
accidentally to over-write, or am I taking the mickey?

Kind regards and thanks once again,

Lambs

"Bob Phillips" wrote:

Here is a way without checkboxes. All you do is select a flagging column

(I
have defined, B,D,F,H), and the date pops up next door.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Const WS_RANGE As String = "B:B,D:D,F:F,H:H"

If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
.Font.Name = "Marlett"
.Value = "a"
.Offset(0, 1).Value = Date
.Offset(0, 1).NumberFormat = "dd mmm"
End With
End If

End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Lambs" wrote in message
...
Hi,

I am devising a spreadsheet to log the progress on a list of clients,
through a set series of procedures. The idea is that each time a

certain
stage has been passed, the corresponding date is entered in the

relevant
column, at that client's row.

I have thought about using check boxes by each date column, so that

when
the
box is checked, the corresponding date is automatically filled in.

I know that one can 'tie' a cell to a check box, and it will flip from
'True' to 'False' accordingly. I should like that box to show today's

date
when ticked, and revert to blank when unticked.

If it works, there will be several hundred of these little critters,

and
copying them can be a problem - they all want to 'tie' themselves to

the
same
cell, when I use the normal copy and paste function.

If anyone can advise on code to get the tied cell to show correct

info.
rather than just True/False, I'd be much obliged.

If anyone can advise on how to get copied check boxes automatically to
refer
to the next cell down, or in line, or some kind of automation/macro

that I
could set up, then I'd be even more grateful.

If anyone thinks that the check-box idea is fatally flawed and/or can
propose a more elegant solution, then please let me have your

thoughts.

Thank you,

Lambs






  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Use of check boxes


"Lambs" wrote in message
...

As to not liking double-clicks, I am guessing that you might want to cut
back on the caffeine...?


LOL! It's the only thing that keeps me going until I hit the malt.


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
Copy and move check box (check boxes) with new cell link? Marty Excel Worksheet Functions 1 January 20th 10 07:43 PM
How do I increase the size of check in check boxes Adams, Les Excel Discussion (Misc queries) 0 September 19th 06 02:35 PM
Enable check box in protected sheet + group check boxes Dexxterr Excel Discussion (Misc queries) 4 August 2nd 06 12:00 PM
How do i create a value for check boxes or option boxes Tim wr Excel Discussion (Misc queries) 1 February 9th 06 10:29 PM
Check Box influencing other Check Boxes iwrk4dedpr[_2_] Excel Programming 0 May 20th 04 12:55 AM


All times are GMT +1. The time now is 02:55 PM.

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"