Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Validation List

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("H1").Value < "" Then
Sheet3.Range("H1").Value = Sheet2.Range("H1").Value
Sheet4.Range("H1").Value = Sheet2.Range("H1").Value
Sheet5.Range("H1").Value = Sheet2.Range("H1").Value
Sheet6.Range("H1").Value = Sheet2.Range("H1").Value
End If

End Sub

-trying to auto change selected list item for each worksheet list
-code above for sheet2, works fine
-add and make the changes to sheet 3, works fine
-do the same for sheet 4, 5, or 6, and it gets hung up
?when the list is updates on the other worksheets, does that trigger
Worksheet_Change on all subsequent worksheets?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 468
Default Validation List

Your code works fine (on my end).

"mike" wrote:

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("H1").Value < "" Then
Sheet3.Range("H1").Value = Sheet2.Range("H1").Value
Sheet4.Range("H1").Value = Sheet2.Range("H1").Value
Sheet5.Range("H1").Value = Sheet2.Range("H1").Value
Sheet6.Range("H1").Value = Sheet2.Range("H1").Value
End If

End Sub

-trying to auto change selected list item for each worksheet list
-code above for sheet2, works fine
-add and make the changes to sheet 3, works fine
-do the same for sheet 4, 5, or 6, and it gets hung up
?when the list is updates on the other worksheets, does that trigger
Worksheet_Change on all subsequent worksheets?

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
Use VBA to reset data validation (=list) value to first value in that list (list is a named range) ker_01 Excel Programming 7 October 27th 08 03:13 PM
data validation invalid in dynamic validation list ilia Excel Programming 0 November 7th 06 12:54 PM
Validation (Drop down list vs simple text length validation) Bob Phillips[_6_] Excel Programming 2 April 27th 04 07:47 PM
Validation (Drop down list vs simple text length validation) Jason Morin[_2_] Excel Programming 1 April 27th 04 04:56 PM
Validation (Drop down list vs simple text length validation) Pete McCosh Excel Programming 0 April 27th 04 03:49 PM


All times are GMT +1. The time now is 03:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"