R
RoadKing
Hi Bob:
First thank you for the help. I did as you said, but I am not sure I placed
the text string in the right place. I pasted it in View Code on the blank
area to the right of "Project / Properties" but for some reason it is not
moving the text from "Data Sheet" to the "Activity Sheet".
Any help appreciated
John
-------------------------------------------------------------------------
YOUR CODE MODIFIED:
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "B1:B10" '<== change to suit
On Error GoTo ws_exit
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
Worksheets("Activity Report").Range("C1").Value = .Value
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub
-----------------------------------------------------------------------------
First thank you for the help. I did as you said, but I am not sure I placed
the text string in the right place. I pasted it in View Code on the blank
area to the right of "Project / Properties" but for some reason it is not
moving the text from "Data Sheet" to the "Activity Sheet".
Any help appreciated
John
-------------------------------------------------------------------------
YOUR CODE MODIFIED:
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "B1:B10" '<== change to suit
On Error GoTo ws_exit
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
Worksheets("Activity Report").Range("C1").Value = .Value
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub
-----------------------------------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "A!:A3" '<== change to suit
On Error GoTo ws_exit
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
Worksheets("Sheet2").Range("A1").Value = .Value
End With
End If
Application.EnableEvents = True
End Sub
'This is worksheet event code, which means that it needs to be 'placed
in the appropriate worksheet code module, not a standard 'code module.