Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Trigger an event when a cell's value is changed.

Hi,

I have a cell which I am using as a listbox (Went into the Data menu
and selected Data Validation. Then for Validations Criteria under the
Settings tab, I selected list for the Allow: property). This cell can
only take values 1, 2, 3 or 4. That is the user can select a value
between 1 to 4 from the list box.

Now my question:
Is there any way I can trap the event when the value of this cell
changes. For example if the user changes the value from 1 to 2 then I
want to execute a macro. If it is not possible then can someone
suggest me an alternative and also some piece of code.

Your help is much appreciated.

Thanks & Regards,
Prasad Vanka
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Trigger an event when a cell's value is changed.

Hi
see:
http://www.cpearson.com/excel/events.htm

use the workshee_change event for this

--
Regards
Frank Kabel
Frankfurt, Germany

"Prasad Vanka" schrieb im
Newsbeitrag m...
Hi,

I have a cell which I am using as a listbox (Went into the Data menu
and selected Data Validation. Then for Validations Criteria under the
Settings tab, I selected list for the Allow: property). This cell can
only take values 1, 2, 3 or 4. That is the user can select a value
between 1 to 4 from the list box.

Now my question:
Is there any way I can trap the event when the value of this cell
changes. For example if the user changes the value from 1 to 2 then I
want to execute a macro. If it is not possible then can someone
suggest me an alternative and also some piece of code.

Your help is much appreciated.

Thanks & Regards,
Prasad Vanka


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Trigger an event when a cell's value is changed.

I put a textbox on the worksheet, set as hidden, and link
the value of the textbox to the cell in question, then
put the code against the change event for the textbox,
probably a really poor way to do it, but hey it works for
me !!!


-----Original Message-----
Hi,

I have a cell which I am using as a listbox (Went into

the Data menu
and selected Data Validation. Then for Validations

Criteria under the
Settings tab, I selected list for the Allow: property).

This cell can
only take values 1, 2, 3 or 4. That is the user can

select a value
between 1 to 4 from the list box.

Now my question:
Is there any way I can trap the event when the value of

this cell
changes. For example if the user changes the value from

1 to 2 then I
want to execute a macro. If it is not possible then can

someone
suggest me an alternative and also some piece of code.

Your help is much appreciated.

Thanks & Regards,
Prasad Vanka
.

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
dependant lists- trigger a blank when 1st one is changed? Roady Excel Discussion (Misc queries) 5 January 29th 08 10:59 PM
Trigger Event on Format Change Zone[_3_] Excel Discussion (Misc queries) 4 August 25th 07 05:43 PM
Trigger Event Todd Huttenstine Excel Programming 2 July 14th 04 06:50 PM
Format Event Trigger (XL2002) Ronald Dodge Excel Programming 2 April 27th 04 09:48 PM


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