Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 192
Default Sheet change event and list validation question

The following is my code. The Target cell is a list validation. When I type
in the word hide in cell(any row, column 6), the cell in column 7 of the same
row interior pattern changed. But when i use the list validation to change
the value of the cell, the cell interior pattern did not change. I put a
breakpoint to see if the code ran and it did but line 4 of the code did not
do anything.

1 Private Sub Worksheet_Change(ByVal Target As Range)
2 If Target.Column = 6 Then
3 If Ucase$(Trim$(Target.Text)) = "HIDE" Then
4 Cells(Target.Row, 7).Interior.Pattern = xlDown
5 End If
6 End If
7 End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Sheet change event and list validation question

If you are using Excel 97, the change event is not fired when a selection is
made from a Data Validation dropdown list that uses a range to populate the
list. I would expect this to work in xl2000 or later.

--
Regards,
Tom Ogilvy

"Nick" wrote in message
...
The following is my code. The Target cell is a list validation. When I

type
in the word hide in cell(any row, column 6), the cell in column 7 of the

same
row interior pattern changed. But when i use the list validation to

change
the value of the cell, the cell interior pattern did not change. I put a
breakpoint to see if the code ran and it did but line 4 of the code did

not
do anything.

1 Private Sub Worksheet_Change(ByVal Target As Range)
2 If Target.Column = 6 Then
3 If Ucase$(Trim$(Target.Text)) = "HIDE" Then
4 Cells(Target.Row, 7).Interior.Pattern = xlDown
5 End If
6 End If
7 End Sub



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
Validation Procedure with a worksheet change event Bhupinder Rayat Excel Worksheet Functions 2 October 3rd 07 05:18 PM
sheetChange event and list validation Nick Excel Programming 1 October 20th 04 10:34 PM
Change Cell from Validated List Not Firing Worksheet Change Event [email protected] Excel Programming 3 October 4th 04 03:00 AM
change event question scott23 Excel Programming 3 May 13th 04 01:55 PM
MS Bug? Data validation list dropdown with Worksheet_Change event Dan Frederick Excel Programming 0 April 6th 04 05:35 AM


All times are GMT +1. The time now is 08:14 AM.

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"