Solved

Excel VBA: DateTime Picker not firing the AfterUpdate event

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
OneDrive for Office 365 Users 2 64
Office 2016 User Guides 5 37
Excel 2016 formulas 5 44
Problem to file 5 17
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…
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
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.

823 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