LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Expand range help

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
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
Range that expand Juran Excel Discussion (Misc queries) 1 August 8th 06 01:52 AM
Cannot Expand Named Range - when size of the Range exceeds Snig Excel Discussion (Misc queries) 1 July 7th 05 01:46 PM
Data Range Will Not Expand Dmorri254 Excel Worksheet Functions 4 April 11th 05 09:06 PM
Expand Range WStoreyII Excel Programming 2 December 6th 04 12:48 PM
Find first cell in range and expand range -VBA Caméléon Excel Programming 3 December 4th 04 02:01 AM


All times are GMT +1. The time now is 07:37 PM.

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"