Solved

Excel VBA: DateTime Picker not firing the AfterUpdate event

Posted on 2006-07-20
4
1,229 Views
Last Modified: 2008-01-09
Hi all,

I am using the DateTime Picker in Excel VBA. I place it on a form but when I use it to change a date it does not not fire the AfterUpdate event handler.

What I am doing wrong?

Avi
0
Comment
Question by:progtw
  • 2
4 Comments
 
LVL 3

Expert Comment

by:JefKve
ID: 17147971
Is ther anything in the beforeupdate event that might keep afterupdate from occuring?

jeff
0
 
LVL 6

Expert Comment

by:mwharff
ID: 17148240
There doesn't seem to be a beforeupdate or afterupdate event.  Try using a combination of Exit and or change events.

Hope this helps.

Mike
0
 

Author Comment

by:progtw
ID: 17149999
To mwharff:

>> Try using a combination of Exit and or change events.

Can you clarify>

tia

Avi
0
 
LVL 6

Accepted Solution

by:
mwharff earned 125 total points
ID: 17153171
Probably your best bet is the Exit event.  I don't know all the options you're going to need would be to use the dtpicker1_Exit event.  This fires when the focus leaves the dtpicker.  The change event fires after every edit so it might get in the way if you're doing validation checking or using the date to fill in another listbox.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question