Solved

Excel VBA: DateTime Picker not firing the AfterUpdate event

Posted on 2006-07-20
4
1,211 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

829 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