Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() I want to put this macro on a file...it is suppose to make a cell a check box...where do I put it? Private Sub Worksheet_SelectionChange(ByVal Target As Range) Application.EnableEvents = False On Error GoTo sub_exit If Not Intersect(Target, Range("A1")) Is Nothing Then With Target If .Value = "ü" Then .Value = "" Else .Value = "ü" .Font.Name = "Wingdings" End If End With End If sub_exit: Application.EnableEvents = True End Sub -- roger_home ------------------------------------------------------------------------ roger_home's Profile: http://www.excelforum.com/member.php...o&userid=16434 View this thread: http://www.excelforum.com/showthread...hreadid=516046 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
view/toolbars/activex select checkbox and click on the sheet
right click the checkbox select code roger_home编写: I want to put this macro on a file...it is suppose to make a cell a check box...where do I put it? Private Sub Worksheet_SelectionChange(ByVal Target As Range) Application.EnableEvents = False On Error GoTo sub_exit If Not Intersect(Target, Range("A1")) Is Nothing Then With Target If .Value = "ü" Then .Value = "" Else .Value = "ü" .Font.Name = "Wingdings" End If End With End If sub_exit: Application.EnableEvents = True End Sub -- roger_home ------------------------------------------------------------------------ roger_home's Profile: http://www.excelforum.com/member.php...o&userid=16434 View this thread: http://www.excelforum.com/showthread...hreadid=516046 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Combining data from cells from several excel sheets to a new sheet | Excel Discussion (Misc queries) | |||
Data Range Mess | Charts and Charting in Excel | |||
checking that cells have a value before the workbook will close | Excel Worksheet Functions | |||
Excel Macro to Copy & Paste | Excel Worksheet Functions | |||
create a macro to save excel sheet | Excel Worksheet Functions |