Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Problem with Data Validation Dropdown List / Worksheet_Change Event

I'm using Excel 2003. I have the following code associated with my
worksheet:

Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)

Application.Calculation = xlCalculationManual
Application.EnableEvents = False
On Error GoTo ws_exit

boolMinimumInfoCompleted = False
boolErrorsFound = True
boolAutomatedWorksheetChange = False

If Not Application.Intersect(Target,
ThisWorkbook.Names("InterestOnlyPeriod").RefersToR ange) Is Nothing Then

InterestOnlyPeriod_OnEntry

End If

If Not boolAutomatedWorksheetChange Then

ValidateCostAnalysis
Application.Calculate

End If

ws_exit:
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic

End Sub


Here's the problem. "InterestOnlyPeriod" is the name of a cell that
contains a data validation drop-down list. I've established that the
Worksheet_Change event fires if I type a selection in the
"InterestOnlyPeriod" cell or if I make a selection from the drop-down
list. However, the first If..Then statement above only evaluates as
"True" if I physically type a selection in the "InterestOnlyPeriod"
cell. If I make a selection from the drop-down list, Worksheet_Change
fires, but this If..Then statement evaluates as false.

Any ideas? Does "Target" have a different value if a selection is made
from the drop-down list?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Problem with Data Validation Dropdown List / Worksheet_Change Event

This is apparently a bug. Further research turned up this earlier
posting:

http://groups.google.com/group/micro...c07358ae7be82a

.... which describes a workaround.

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
Data validation with dropdown list geotso Excel Discussion (Misc queries) 2 February 1st 09 05:59 PM
blanks in data validation list dropdown confused Excel Worksheet Functions 7 June 7th 06 02:10 PM
Data Validation - Dropdown List Not Appearing MWS Excel Discussion (Misc queries) 2 April 25th 05 05:05 PM
MS Bug? Data validation list dropdown with Worksheet_Change event Dan Frederick Excel Programming 0 April 6th 04 05:35 AM
Excel Validation / Dropdown list Problem edsulya Excel Programming 5 February 5th 04 09:06 PM


All times are GMT +1. The time now is 03:55 PM.

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"