Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I use the following to keep cells between two sheets in sync:
Private Sub Worksheet_Change(ByVal Target As Range) Dim Lrow As Long On Error GoTo ws_exit: Lrow = Cells(Rows.Count, 3).End(xlUp).Row If Target.Count 1 Then GoTo ws_exit If Intersect(Target, Range("C3:C" & Lrow)) Is Nothing Then GoTo ws_exit Application.EnableEvents = False Sheets(2).Range("B18").Offset(Target.Row, 0) = Target.Value ws_exit: Application.EnableEvents = True End Sub What I would like to do is expand its range to include source columns E and F, skipping D and include target columns C and D -- David |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Range that expand | Excel Discussion (Misc queries) | |||
Cannot Expand Named Range - when size of the Range exceeds | Excel Discussion (Misc queries) | |||
Data Range Will Not Expand | Excel Worksheet Functions | |||
Expand Range | Excel Programming | |||
Find first cell in range and expand range -VBA | Excel Programming |