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

I am trying to write an event to change the value in a cell after the cell
above it is changed to a certain value. Both cells are validation lists, and
the lists in the second cell are dependent on the value in the first cell.
All the rest of the data in the sheet (thousands of cells) are related to
these cells, and it seems that this recalculation stops the change event.

The code:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)

If Target.Address = "$B$1" Then
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
If Target.Value 30 Then
Range("B2").Value = "Fillet Root Side"
End If
Application.EnableEvents = True
Application.Calculation = xlAutomatic
End If

End Sub

The code works great on a test sheet. I can't understand why it doesn't
work in the sheet with all the data. Can anyone provide a solution or
workaround?

Thanks,
Pflugs
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 by Value problem Jim G Excel Discussion (Misc queries) 3 October 2nd 07 12:59 PM
Problem w/ worksheet change event Steph[_6_] Excel Programming 4 October 19th 05 06:41 PM
Worksheet Change Event Problem tim Excel Programming 9 March 28th 05 08:37 AM
Change Cell from Validated List Not Firing Worksheet Change Event [email protected] Excel Programming 3 October 4th 04 03:00 AM
Worksheet Change Sub problem jwlabno Excel Programming 1 November 14th 03 10:49 PM


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