LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Worksheet_Change help

Jim Thomlinson was helping me with this earlier but I ran into a problem. The
full code follows:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address() = "$B$3" Then
Application.EnableEvents = False
With ActiveSheet

For Each c In Worksheets("Goals").Range("C3:C54").Cells
If c.Value = .Range("B4") And c.Offset(0, -1).Value =
Target.Value Then
.Range("I36") = c.Offset(0, 1).Value
.Range("I37") = c.Offset(0, 3).Value
.Range("I38") = c.Offset(0, 5).Value
.Range("I39") = c.Offset(0, 7).Value
Exit For
End If
Next c

End With
Application.EnableEvents = True
End If
End Sub

This one work once, when I open the file and change the value in B3; any
subseqeunt changes produces no results. Even when I try to put a break in the
code so I can troubleshoot, that don't work either. So I can't figure out
what the problem is or where it is. I really need this to work cause I still
have a long way to go with this project.
Thanks for all the help.
Ayo

 
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 okrob Excel Programming 5 May 9th 07 03:51 PM
Worksheet_Change scrimmy Excel Programming 3 April 23rd 07 06:40 PM
worksheet_change vs. calculate, and worksheet_change not running Tom Ogilvy Excel Programming 1 July 14th 03 02:51 AM
worksheet_change vs. calculate, and worksheet_change not running Ross[_5_] Excel Programming 0 July 13th 03 04:27 PM


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