PC Review


Reply
Thread Tools Rate Thread

Data form not triggering Worksheet_Change event

 
 
Gompies
Guest
Posts: n/a
 
      4th Oct 2008
I'm trying to input some data in a worksheet with the build in Data
Form. After insertion I want a to trigger the Worksheet_Change event
(to validate the input). But data entry with the Data Form won't fire
this change event.
Is there some workaround?
 
Reply With Quote
 
 
 
 
IanKR
Guest
Posts: n/a
 
      4th Oct 2008
> I'm trying to input some data in a worksheet with the build in Data
> Form. After insertion I want a to trigger the Worksheet_Change event
> (to validate the input). But data entry with the Data Form won't fire
> this change event.
> Is there some workaround?


Use the Worksheet_Calculate event instead. The Worksheet_Change event is
fired only when the user changes the worksheet directly, and not via a
userform.

 
Reply With Quote
 
IanKR
Guest
Posts: n/a
 
      4th Oct 2008
> Use the Worksheet_Calculate event instead. The Worksheet_Change event is
> fired only when the user changes the worksheet directly, and not via a
> userform.


Please ignore my post - it's wrong. I managed to get the Change event to
fire in these circumstances, so I'm afraid I don't know the answer to your
problem. Apologies.

However, I have had problems in these circumstances before. There are
occasions when you'd expect the Change event to fire - but doesn't - and the
Calculate event does fire, which does the trick. Could you post your code?

 
Reply With Quote
 
Jim Rech
Guest
Posts: n/a
 
      4th Oct 2008
>>But data entry with the Data Form won't fire this change event.

That does seem to an problem. The calc event idea maybe isn't so good
because there is no way to know which cell changed. You might try this
alternative to the built-in Data form from John Walkenbach. It's a better
answer in any case and (I assume) it doesn't block the change event.


http://spreadsheetpage.com/index.php/dataform/home

--
Jim
"Gompies" <(E-Mail Removed)> wrote in message
news:7189aa38-a4ab-4ca3-9a91-(E-Mail Removed)...
> I'm trying to input some data in a worksheet with the build in Data
> Form. After insertion I want a to trigger the Worksheet_Change event
> (to validate the input). But data entry with the Data Form won't fire
> this change event.
> Is there some workaround?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
QueryClose event of a form triggering Exit event of a textbox on that form noname Microsoft Excel Programming 1 9th Sep 2010 11:20 PM
Form and subform - timing of event triggering gorsoft@hotmail.com Microsoft Access Forms 4 2nd Nov 2009 03:37 PM
Event triggering on subform while in main form Maverick Microsoft Access Form Coding 4 4th Feb 2009 03:51 PM
Triggering Form On Dirty Event using VBA =?Utf-8?B?UGF1bA==?= Microsoft Access VBA Modules 1 9th Oct 2006 11:01 AM
auto-filter change not triggering worksheet_change event mark Microsoft Excel Programming 1 19th Sep 2003 03:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:29 AM.