Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formula for tickbox?!?



Is there a formula to add a tick in the tickbox if there is dat
present in another cell? Does this sound confusing

--
Mario Londo
-----------------------------------------------------------------------
Mario London's Profile: http://www.excelforum.com/member.php...fo&userid=1572
View this thread: http://www.excelforum.com/showthread.php?threadid=27246

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Formula for tickbox?!?

Mario,

One way is to use this technique of having a check column, and
monitoring it with a worksheet selection change event. Add your code as
needed.

So if we assume that the data is in A1:A100 (change to suit), clicking in
column A will do what you want with this code.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
On Error GoTo sub_exit
If Not Intersect(Target, Range("A1:A100")) Is Nothing Then
With Target
If .Value = "a" Then
.Value = ""
Else
.Value = "a"
.Font.Name = "Marlett"
End If
.Offset(0, 1).Activate
End With
End If
sub_exit:
Application.EnableEvents = True
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

RP

"Mario London" wrote in message
...


Is there a formula to add a tick in the tickbox if there is data
present in another cell? Does this sound confusing?


--
Mario London
------------------------------------------------------------------------
Mario London's Profile:

http://www.excelforum.com/member.php...o&userid=15726
View this thread: http://www.excelforum.com/showthread...hreadid=272468



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Formula for tickbox?!?

Set the LinkedCell property of the checkbox to A1 or whatever cell it is to
be linked to.
If the cell value is True the checkbox will be checked, if False it will be
unchecked.
I believe 1 and 0 can be sunstituted for True and False respectively.
HTH
Chris

"Mario London" wrote in message
...


Is there a formula to add a tick in the tickbox if there is data
present in another cell? Does this sound confusing?


--
Mario London
------------------------------------------------------------------------
Mario London's Profile:

http://www.excelforum.com/member.php...o&userid=15726
View this thread: http://www.excelforum.com/showthread...hreadid=272468



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
how do i insert a tickbox in an Excel cell? mark fitzgibbon Excel Discussion (Misc queries) 1 June 23rd 09 01:27 PM
How do I count a tickbox in a spreadsheet? Rossy_t42 Excel Discussion (Misc queries) 1 August 12th 08 02:12 PM
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


All times are GMT +1. The time now is 06:29 AM.

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"