Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default When a value is changed manually or dynamically in a cell, how can I tell?

I have been using the following to monitor for changes in cells in my excel spreadsheet:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)

But I am unsure if this monitors manual key entry, as well as automatic changes to cells (if I manually modify F1, and the values of F2, G3, h56 and i44 are based on F1, they will get modified). Can someone tell me if I am wrong or right? And if I am wrong, what can I use that will monitor for both automatic changes to cells and manual changes to cells? Thank you.

Doug
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default When a value is changed manually or dynamically in a cell, how can I tell?

Doug,

The Change procedure is triggered when a cell is changed manually
or by VBA code, but not when the value is changed as a result of
a formula calculation.


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




"Doug" wrote in message
...
I have been using the following to monitor for changes in cells

in my excel spreadsheet:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)

But I am unsure if this monitors manual key entry, as well as

automatic changes to cells (if I manually modify F1, and the
values of F2, G3, h56 and i44 are based on F1, they will get
modified). Can someone tell me if I am wrong or right? And if I
am wrong, what can I use that will monitor for both automatic
changes to cells and manual changes to cells? Thank you.

Doug



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default When a value is changed manually or dynamically in a cell, how can I tell?

Chip,

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
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
manually selected Excel cell formatting TomCU Excel Discussion (Misc queries) 1 January 18th 10 12:58 PM
Cell keeps the formula even after changing the value manually Hina Excel Discussion (Misc queries) 6 September 16th 09 02:05 AM
Format changed when the details in cell changed angel Excel Worksheet Functions 9 July 15th 08 12:36 AM
Make manually changed pivot table column headings work for other u katy Excel Worksheet Functions 0 June 17th 08 01:06 AM
Manually reseting the used cell range Woody13 Excel Discussion (Misc queries) 2 January 26th 06 09:10 PM


All times are GMT +1. The time now is 10:25 PM.

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"