PC Review


Reply
Thread Tools Rate Thread

change and selectionchange event

 
 
=?Utf-8?B?Y2xhcmE=?=
Guest
Posts: n/a
 
      24th May 2007
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 With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      24th May 2007
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" <(E-Mail Removed)> wrote in message
news:5BF5805A-895F-4099-AE74-(E-Mail Removed)...
> 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 With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      24th May 2007
Take a look here (about 2/3 down the page) for the event order:

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


In article <5BF5805A-895F-4099-AE74-(E-Mail Removed)>,
clara <(E-Mail Removed)> 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

 
Reply With Quote
 
=?Utf-8?B?Y2xhcmE=?=
Guest
Posts: n/a
 
      25th May 2007
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" <(E-Mail Removed)> wrote in message
> news:5BF5805A-895F-4099-AE74-(E-Mail Removed)...
> > 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 With Quote
 
Susan
Guest
Posts: n/a
 
      25th May 2007
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 <c...@discussions.microsoft.com> 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" <c...@discussions.microsoft.com> wrote in message
> >news:5BF5805A-895F-4099-AE74-(E-Mail Removed)...
> > > 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 -



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      25th May 2007
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" <(E-Mail Removed)> wrote in message
news:04545778-F769-4D5C-9F59-(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
>> news:5BF5805A-895F-4099-AE74-(E-Mail Removed)...
>> > 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SelectionChange Event James Microsoft Excel Programming 5 16th Sep 2009 11:36 PM
SelectionChange Event A. Blundon Microsoft Outlook VBA Programming 2 27th Feb 2006 07:52 PM
Remember SelectionChange range in the Change sheet event? Marie J-son Microsoft Excel Programming 2 30th Jan 2005 09:40 AM
SelectionChange Event Squid Microsoft Excel Programming 5 11th Feb 2004 01:57 PM
SelectionChange Event Max Moor Microsoft Access Forms 3 11th Dec 2003 07:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:08 AM.