Home |
Search |
Today's Posts |
#3
![]() |
|||
|
|||
![]()
Shawn
Don't use selectionchange but simply change event and Target.Value Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo ws_exit: Application.EnableEvents = False If Not Application.Intersect(Range("S7:S37"), Target) Is Nothing Then Worksheets("Daily Log of Students Seen").Range("S38").Value = _ Target.Value End If ws_exit: Application.EnableEvents = True End Sub Gord Dibben Excel MVP On Mon, 23 May 2005 10:10:48 -0700, "Shawn" wrote: Here is what I have: Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Not Application.Intersect(Range("S7:S37"), Target) Is Nothing Then Worksheets("Daily Log of Students Seen").Range("S38").Value = ActiveCell.Value End If End Sub But, this causes Cell S38 to equal the cell in the target range that is entered. I actually want something else to happen. Once I intercept a cell in the target range and change it, I want Cell S38 to take the value of the changed cell once I exit it. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Edit cell automatically takes you to cell | Excel Worksheet Functions | |||
up to 7 functions? | Excel Worksheet Functions | |||
Using VB, specific cell data into email subject | Excel Discussion (Misc queries) | |||
How do I insert an image into a specific cell within a protected . | Excel Discussion (Misc queries) | |||
GET.CELL | Excel Worksheet Functions |