LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Bo Rasmussen
 
Posts: n/a
Default Worksheet_SelectionChange not working

Hi,

Being relatively new to Excel, I've tried to implement some stuff for
setting a checkmark in cells when clicked.
I've found a solution for this at
http://www.mrexcel.com/archive2/1900/2145.htm which gives me the code found
below. The problem is that nomatter what I do it seems that the
Worksheet_SelectionChange is never called??? Could somebody give me a clue.

Option Compare Text
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("B1:B20")) Is Nothing Then
If Target = "a" Then
Target = vbNullString
End
End If

If Target = vbNullString Then
Target.Font.Name = "Marlett"
Target = "a"
End If
End If

End Sub



Regards
Bo Rasmussen


 
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
Working with array equations OkieViking Excel Discussion (Misc queries) 2 January 23rd 05 07:43 AM
Problem Working with Named Ranges montgomerymouse Excel Discussion (Misc queries) 1 January 10th 05 10:45 PM
working folder David Excel Discussion (Misc queries) 1 January 10th 05 08:52 PM
Setting Major tick to none on charts is not working, is it a bug? Mike J Charts and Charting in Excel 2 December 17th 04 05:59 PM
Formula's not working Dave Excel Discussion (Misc queries) 2 December 7th 04 08:01 PM


All times are GMT +1. The time now is 04:36 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"