Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Workbook_SheetChange

I'm using the Workbook_SheetChange event to run some code when the selection
in a drop down list (created using data validation) changes. This works fine
in 2003, but it doesn't work at all in 97. Is this right? Do I have to
change the way my code is called or am I just doing something wrong?

Any suggestions gratefully received as my current solution now seems to be a
dead duck.

Thanks. Matt B
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Workbook_SheetChange

Data validation using the list option did not trigger the change event in
Excel 97 when a selection was made from the list if the list was filled from
a worksheet range (as opposed to typed in directly).

This was a bug fixed in later versions of Excel. (so if you need this
functionality in xl97, you will have to use a workaround. Popular
suggestions are to have a formula dependent on the selection and use the
calculate event - although this is less specific in determining when to run.

--
Regards,
Tom Ogilvy

"Matt B" wrote in message
...
I'm using the Workbook_SheetChange event to run some code when the

selection
in a drop down list (created using data validation) changes. This works

fine
in 2003, but it doesn't work at all in 97. Is this right? Do I have to
change the way my code is called or am I just doing something wrong?

Any suggestions gratefully received as my current solution now seems to be

a
dead duck.

Thanks. Matt B



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Workbook_SheetChange

Matt,

This is correct, a 'feature' of XL97.

I get around it by linking a cell to my target cell, which will trigger the
Worksheet_Calculate event. From here, you can test if the activecell is your
target cell.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Matt B" wrote in message
...
I'm using the Workbook_SheetChange event to run some code when the

selection
in a drop down list (created using data validation) changes. This works

fine
in 2003, but it doesn't work at all in 97. Is this right? Do I have to
change the way my code is called or am I just doing something wrong?

Any suggestions gratefully received as my current solution now seems to be

a
dead duck.

Thanks. Matt B



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Workbook_SheetChange

Or just use a combobox from the control toolbox toolbar.

Matt B wrote:

I'm using the Workbook_SheetChange event to run some code when the selection
in a drop down list (created using data validation) changes. This works fine
in 2003, but it doesn't work at all in 97. Is this right? Do I have to
change the way my code is called or am I just doing something wrong?

Any suggestions gratefully received as my current solution now seems to be a
dead duck.

Thanks. Matt B


--

Dave Peterson
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 and Workbook_SheetChange not firing David Jenkins[_2_] Excel Programming 4 September 2nd 04 08:02 PM
Workbook_sheetChange event J S Excel Programming 0 August 9th 04 07:16 PM
workbook_sheetchange JulieD Excel Programming 1 June 14th 04 04:32 AM
Problem with the Workbook_SheetChange event??? angel Excel Programming 0 January 29th 04 02:56 PM
Workbook_SheetChange will not fire Robert Willard Excel Programming 1 September 10th 03 07:52 PM


All times are GMT +1. The time now is 07:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"