LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 
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 09:57 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"