Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Change Cell from Validated List Not Firing Worksheet Change Event

I have a cell whose valid values are limited through a validation list
(using a named range).
The cell uses the excel pull down feature.
When I make the change through the pull down, no worksheet change event
is fired, but
when I make the change by typing it does.

Is there a way to get around this so that I can find the change when it
occurs from changing a value through the pull down list?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Change Cell from Validated List Not Firing Worksheet Change Event

This would describe Excel 97. You should get a change event in later
versions.

--
Regards,
Tom Ogilvy

" wrote in message
oups.com...
I have a cell whose valid values are limited through a validation list
(using a named range).
The cell uses the excel pull down feature.
When I make the change through the pull down, no worksheet change event
is fired, but
when I make the change by typing it does.

Is there a way to get around this so that I can find the change when it
occurs from changing a value through the pull down list?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Change Cell from Validated List Not Firing Worksheet Change Event

Maybe it has something to do with Mac version too. I'm at home using
2002 Excel but its not firing.

Since most folks at work use 97, I'm going to try and find a
workaround.

I figure I can replace Worksheet Change with the
Worksheet_Calculate event

But do you have any idea how I would replace the following:

Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim rng As Range
Dim Cell As Range
Set rng = Range("a1:a10") ...... using this conceptually
For Each Cell in Target
If Union(Cell, rng).Address = rng.Address Then....

I guess Calculate event doesn't use the same variables ....
I might be able to assume that the activecell is the one I'm checking
rng against.

Not sure of specifics though

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Change Cell from Validated List Not Firing Worksheet Change Event

calculate does not indicate what triggered the calculate.

Also, selecting a value from data validation dropdown does not trigger a
calculate unless there is another cell that has a formula that references
the cell with the dropdown. So you would need a dummy formula if you don't
actually have a cell dependent on the value of the cell with the dropdown.
The activeCell would probably be a valid assumption.

I can't say about the MAC.

--
Regards,
Tom Ogilvy

" wrote in message
oups.com...
Maybe it has something to do with Mac version too. I'm at home using
2002 Excel but its not firing.

Since most folks at work use 97, I'm going to try and find a
workaround.

I figure I can replace Worksheet Change with the
Worksheet_Calculate event

But do you have any idea how I would replace the following:

Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim rng As Range
Dim Cell As Range
Set rng = Range("a1:a10") ...... using this conceptually
For Each Cell in Target
If Union(Cell, rng).Address = rng.Address Then....

I guess Calculate event doesn't use the same variables ....
I might be able to assume that the activecell is the one I'm checking
rng against.

Not sure of specifics though



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
Worksheet Change Event - copy cell to another sheet dhstein Excel Discussion (Misc queries) 2 October 12th 09 06:35 PM
Worksheet Change Event Tony S.[_2_] Excel Discussion (Misc queries) 11 February 18th 09 01:04 AM
change event on specific cell rather than worksheet frendabrenda1 Excel Discussion (Misc queries) 10 September 21st 06 03:37 AM
Worksheet Change Event TonyM Excel Discussion (Misc queries) 8 March 11th 05 12:52 PM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM


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