Thread
:
Specify target cell
View Single Post
#
6
Posted to microsoft.public.excel.worksheet.functions
New Ton[_2_]
external usenet poster
Posts: 10
Specify target cell
Thank you all very much for helping out, it all worked:)
But after I place formula (using row 6 as example) =IF(C6+E6=0;"";B6-C6+E6)
in range "h5:h30" for adding content, Excel will not add that same content in
"H31". That is what this thread was all about in the first place.
Does it have anything to do with manual and application input?
Application.Enablevents?
When i change 'If Not Application.Intersect' to 'If Application.Intersect'
in the code, it seems to add whatever is added in C6 or E6.
"Lars-Åke Aspelin" wrote:
On Fri, 8 Aug 2008 00:16:01 -0700, New Ton <New
wrote:
Hello. I am trying to get an output to a specific cell after change in any
cell in a range.
This code does what i want, except it offsets target next to cell.
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Range("h5:h30"), Target) Is Nothing Then
Target.Offset(0, 1).Value = Target
End If
End Sub
How can I replace Target.Offset with only one specific cell for all change
in range?
Thanks in advance :)
Maybe like this
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Range("h5:h30"), Target) Is Nothing Then
Range("I10").Value = Target.Value
End If
End Sub
Hope this helps / Lars-Åke
Reply With Quote
New Ton[_2_]
View Public Profile
Find all posts by New Ton[_2_]