PC Review


Reply
Thread Tools Rate Thread

How to detect the cell's value change?

 
 
Jack
Guest
Posts: n/a
 
      28th Oct 2009
Hello,
In my vbasic application I am using Excel automation.
How to detect (which event to use) when user changes the value of the
selected cell?
Thanks,
Jack


 
Reply With Quote
 
 
 
 
Per Jessen
Guest
Posts: n/a
 
      28th Oct 2009
Hi Jack

The Worksheet_Change event is what you need. It returns a Target range,
which is the cell beeing changed.

Private Sub Worksheet_Change(ByVal Target As Range)
msg = MsgBox("Cell " & Target.Address & " has been changed")
End Sub

Regards,
Per

"Jack" <replyto@it> skrev i meddelelsen
news:(E-Mail Removed)...
> Hello,
> In my vbasic application I am using Excel automation.
> How to detect (which event to use) when user changes the value of the
> selected cell?
> Thanks,
> Jack
>


 
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
Simple question - Datagrid - how to detect change in a row cell? Bill nguyen Microsoft VB .NET 2 23rd Feb 2006 08:13 PM
How to detect if there is change in any cell vlaue in a worksheet? Ai_Jun_Zhang Microsoft Excel Programming 2 20th Sep 2005 12:31 AM
detect cell change diepenbos Microsoft Excel Programming 1 18th Aug 2005 02:49 AM
Detect Value change of a Cell =?Utf-8?B?U3RvbmU=?= Microsoft Excel Programming 3 9th Aug 2005 09:34 PM
How Do You Detect A Cell Change In Excel ? Gordon Microsoft VB .NET 1 12th Nov 2003 08:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:40 AM.