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: 33
Default Code not getting triggered by change in value

Hi,
I've this following code in my sheet to create a dynamic "Data validated
cells (to list).
But this is not getting triggered by the change of value in the first Data
validated (to list) cell

Can someone please let me know the solution? I've spent my whole day on this
with no results/.......

Thanks

Option Explicit
'----------------------------------------------------
Private Sub Worksheet_Calculate()
Dropdown_Change ActiveCell
End Sub
'----------------------------------------------------
Private Sub Dropdown_Change(ByVal Target As Range)
Dim oFoundCell As Range
Dim iTargetCol As Long
If Not Intersect(Range(kList1), Target) Is Nothing Then
If Target.Count = 1 Then
With Data.Range(kList1Hnd)
Set oFoundCell = .Find(what:=Target.Value, LookIn:=xlValues)
If oFoundCell Is Nothing Then
MsgBox "Selected group has no clients"
Exit Sub
End If
End With
'load the List2 dropdown and set the default to item 1
iTargetCol = oFoundCell.Column
fzCreateValidationList2 Target.Offset(4, 0), iTargetCol, Target
Target.Offset(4, 0).Value = Data.Range(kList2Hnd &
iTargetCol).Value
End If
End If
End Sub
'----------------------------------------------------
--
Baapi
 
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
Automatic copy triggered by change in date Xerxes Excel Worksheet Functions 1 November 23rd 07 11:04 AM
Error trapped only while stepping through the code - Not triggered when run Jeff Excel Discussion (Misc queries) 7 March 7th 05 06:29 PM
Error trapped only while stepping through the code - Not triggered when run Jeff Excel Discussion (Misc queries) 0 February 28th 05 06:26 PM
macro triggered by a change to a cell Lee Excel Programming 2 July 3rd 04 12:04 AM
Help - Change Event triggered on File Save As Dee Veloper Excel Programming 4 October 29th 03 02:16 AM


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