Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Where to place code that changes a cell value?

I would like the code to execute if the value of any cell changes, but I do
not want to copy the code to more than one location. I.E only one place to
update the code if maintenance is needed.

Regards
George

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Where to place code that changes a cell value?

1) from the subject line: code that changes a cell's value ouight to be
written in a standard module. It could really go into other places, but "good
practice" would be a standard code module

2) the cell changed event can be trapped in a worksheet's code pade- this
fires when a cell's value is changed by entering a new value, NOT when a
value changes as a result of a calculation. The quick way to get to a sheet's
code page is to rioght click the tab and select the last item of th epop-up
menu.



"George Furnell" wrote:

I would like the code to execute if the value of any cell changes, but I do
not want to copy the code to more than one location. I.E only one place to
update the code if maintenance is needed.

Regards
George

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
Where to place code that changes a cell value? George Furnell[_2_] Excel Programming 4 February 19th 06 06:50 PM
where do i place the code ? Asha Excel Programming 2 October 18th 05 04:13 PM
Wherre best to place code luke New Users to Excel 2 August 22nd 05 08:25 PM
Where to place Code question Stuart[_21_] Excel Programming 9 April 28th 05 08:06 PM
Place code in a new workbook with a macro. help_wanted Excel Programming 1 April 1st 04 04:51 PM


All times are GMT +1. The time now is 02:09 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"