ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   change and selectionchange event (https://www.excelbanter.com/excel-programming/390088-change-selectionchange-event.html)

clara

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

Bob Phillips

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




JE McGimpsey

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


clara

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





Susan

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 -




Bob Phillips

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








All times are GMT +1. The time now is 12:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com