Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Question to Chip Pearson

Chip,

In my earlier posting, thank you for clarifying what the Change procedure does and how it operates.

Can you recommend what I can use to "trap" both manual changes, changes made via VBA code and when a value is changed due to a formula calculation?

Thanks.

Doug
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Question to Chip Pearson

Doug,

You can use the Change event to capture changes made by the user
or VBA code. You can use the Calculate event to capture changes
made by calculation of the cell:

Private Sub Worksheet_Calculate()
Static OldA1 As Variant
If IsEmpty(OldA1) = True Then
OldA1 = Range("A1").Value
Else
If Range("A1").Value < OldA1 Then
MsgBox "A1 Changed From: " & OldA1 & " to " &
Range("A1")
End If
End If
End Sub



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Doug" wrote in message
...
Chip,

In my earlier posting, thank you for clarifying what the Change

procedure does and how it operates.

Can you recommend what I can use to "trap" both manual changes,

changes made via VBA code and when a value is changed due to a
formula calculation?

Thanks.

Doug



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Question to Chip Pearson

Chip,

Thank you. thank you. Thank you.

That makes perfect sense.

Thank you.

Doug
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thank you Chip Pearson Michael Excel Discussion (Misc queries) 3 February 5th 05 08:35 PM
Chip Pearson: A Question about RegServ32 and DLLs :) Mike-hime Excel Programming 2 January 6th 04 06:26 PM
Chip Pearson Ricardo[_2_] Excel Programming 0 November 10th 03 07:51 PM
CHIP PEARSON - THANX bertieBassett Excel Programming 0 November 3rd 03 02:01 PM
Chip Pearson or someone Chip Pearson Excel Programming 3 September 18th 03 05:22 AM


All times are GMT +1. The time now is 10:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"