Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default change and selectionchange event

Hi all,

I find change and selectionchange are entwined together. If I want to limit
a cell' content change, I have to handle selectionchange ,change and
selectionchange orderly. Because focus first need to move to the cell, then
change the content and last focus move to other cell. Could you give me a
clear explanation what can I should in these step?

Clara
--
thank you so much for your help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default change and selectionchange event

Let me ask you a question.

Why do you think this?

I can limit a cell's content simple with the change event.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"clara" wrote in message
...
Hi all,

I find change and selectionchange are entwined together. If I want to
limit
a cell' content change, I have to handle selectionchange ,change and
selectionchange orderly. Because focus first need to move to the cell,
then
change the content and last focus move to other cell. Could you give me a
clear explanation what can I should in these step?

Clara
--
thank you so much for your help



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default change and selectionchange event

Take a look here (about 2/3 down the page) for the event order:

http://cpearson.com/excel/events.htm


In article ,
clara wrote:

Hi all,

I find change and selectionchange are entwined together. If I want to limit
a cell' content change, I have to handle selectionchange ,change and
selectionchange orderly. Because focus first need to move to the cell, then
change the content and last focus move to other cell. Could you give me a
clear explanation what can I should in these step?

Clara

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default change and selectionchange event

Hi,

In order to make a change to a cell, first you have to move the focus to the
cell and it causes selectionchange , after you type in the cell, you move the
focus out to other cells and at this time, the excel know there is a change
in a cell and a new selectionchange is also triggered.

Clara
--
thank you so much for your help


"Bob Phillips" wrote:

Let me ask you a question.

Why do you think this?

I can limit a cell's content simple with the change event.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"clara" wrote in message
...
Hi all,

I find change and selectionchange are entwined together. If I want to
limit
a cell' content change, I have to handle selectionchange ,change and
selectionchange orderly. Because focus first need to move to the cell,
then
change the content and last focus move to other cell. Could you give me a
clear explanation what can I should in these step?

Clara
--
thank you so much for your help




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default change and selectionchange event

i don't believe that moving FOCUS to another cell triggers
selectionchange, only if you SELECT another cell.
AFAIK
susan


On May 25, 8:19 am, clara wrote:
Hi,

In order to make a change to a cell, first you have to move the focus to the
cell and it causes selectionchange , after you type in the cell, you move the
focus out to other cells and at this time, the excel know there is a change
in a cell and a new selectionchange is also triggered.

Clara
--
thank you so much for your help



"Bob Phillips" wrote:
Let me ask you a question.


Why do you think this?


I can limit a cell's content simple with the change event.


--
---
HTH


Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)


"clara" wrote in message
...
Hi all,


I find change and selectionchange are entwined together. If I want to
limit
a cell' content change, I have to handle selectionchange ,change and
selectionchange orderly. Because focus first need to move to the cell,
then
change the content and last focus move to other cell. Could you give me a
clear explanation what can I should in these step?


Clara
--
thank you so much for your help- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default change and selectionchange event

That is true, but you don't have to do anything in the SelectionChange
event, so what is the problem?

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"clara" wrote in message
...
Hi,

In order to make a change to a cell, first you have to move the focus to
the
cell and it causes selectionchange , after you type in the cell, you move
the
focus out to other cells and at this time, the excel know there is a
change
in a cell and a new selectionchange is also triggered.

Clara
--
thank you so much for your help


"Bob Phillips" wrote:

Let me ask you a question.

Why do you think this?

I can limit a cell's content simple with the change event.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"clara" wrote in message
...
Hi all,

I find change and selectionchange are entwined together. If I want to
limit
a cell' content change, I have to handle selectionchange ,change and
selectionchange orderly. Because focus first need to move to the cell,
then
change the content and last focus move to other cell. Could you give me
a
clear explanation what can I should in these step?

Clara
--
thank you so much for your help






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
SelectionChange event Kate Excel Programming 2 December 22nd 05 06:03 PM
SelectionChange event Hayeso Excel Programming 2 July 1st 05 03:07 PM
Remember SelectionChange range in the Change sheet event? Marie J-son[_5_] Excel Programming 2 January 30th 05 09:40 AM
SelectionChange event Stefi Excel Programming 2 October 28th 04 01:26 PM
SelectionChange Event Squid[_3_] Excel Programming 5 February 11th 04 01:57 PM


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