Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In my sheet I have multiple boxes. I want when I click them a V (check
mark) appears in it. Should I do this with a code? or macro? Thanks for help! Regards, Berry |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This works by double-clicking in a cell, and toggles the check-mark.
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) Const WS_RANGE As String = "H1:H10" '<=== change to suit On Error GoTo err_handler Application.EnableEvents = False If Not Application.Intersect(Target, Range(WS_RANGE)) Is Nothing Then With Target .Font.Name = "Marlett" Select Case .Value Case "": .Value = "a" Case "a": .Value = "" End Select End With End If err_handler: 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 Bob Phillips (replace somewhere in email address with gmail if mailing direct) wrote in message ps.com... In my sheet I have multiple boxes. I want when I click them a V (check mark) appears in it. Should I do this with a code? or macro? Thanks for help! Regards, Berry |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I make a 3-dimensional plot in Excel? | Charts and Charting in Excel | |||
Replace with single tick - formula too long.... | Excel Discussion (Misc queries) | |||
Can I make formulas more flexible? | Excel Discussion (Misc queries) | |||
make hidden window or workbook visible without specify the name | Excel Worksheet Functions | |||
make cell contents equal to null value - not blank, but empty | Excel Worksheet Functions |