Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default dropdown list select event.

I have a custom dropdown data validation, but need to capture the point at
which the selection is made by the user in order to measure the time between
this and a comanndbutton press. Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default dropdown list select event.

in a module add a PUBLIC variable as DOUBLE
set the value of this using the sheet's change event to trap the value
changing
use the cutton's code to get the elapsed time...
here's a sample sheet code (rigth-click the sheet tab & select view code

Option Explicit
Public t As Double
Private Sub Worksheet_Change(ByVal Target As Range)
t = Timer
End Sub
Private Sub CommandButton1_Click()
MsgBox Timer - t
End Sub

this sets the time for ANY changes...so you'll need to test if the cell
that's changed is the cell containing the validation etc etc...but this is
just an exampel

"PBcorn" wrote:

I have a custom dropdown data validation, but need to capture the point at
which the selection is made by the user in order to measure the time between
this and a comanndbutton press. Any ideas?

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
Multi-select from a dropdown list PaulaG Excel Discussion (Misc queries) 5 April 7th 10 06:52 PM
select cells in dropdown list by keyboard Stacey Excel Discussion (Misc queries) 9 December 6th 08 08:15 PM
Problem with Data Validation Dropdown List / Worksheet_Change Event [email protected] Excel Programming 1 August 9th 06 10:21 PM
select multiple items from a dropdown list Rebecca1 Excel Worksheet Functions 0 July 17th 06 08:47 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 06:10 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"