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: 9
Default Send multiple cell values to multiple cells

I transfer (automaticly) data form one cell to another cell. That
other cell contains no formula or what so ever.
e.g. cell A1 is empty, and cell A1 contains the value 12345. I send
this value to cell D1 from cell A1 or any other cell. How can I do
this code for multiple cells? e.g. A1 to D1, A2 to D2, A3 to D3 ext.


Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
If Intersect(Target, Me.Range("G6")) Is Nothing Then Exit Sub
On Error GoTo CleanUp
Application.EnableEvents = False
With Target
If .Value < "" Then
Excel.Range("A1").Value = Target.Value
End If
End With
CleanUp:
Application.EnableEvents = True
End Sub

Thanks in Advance.

BR,
John
 
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
auto fill multiple values in multiple cells Matt M[_2_] Excel Discussion (Misc queries) 1 August 24th 09 06:05 AM
Transposing Multiple Cell References to Multiple Values (NOT total LinLin Excel Discussion (Misc queries) 7 November 11th 07 10:57 PM
Conditional Formatting of Cells with Multiple Cell Values BDankas Excel Discussion (Misc queries) 4 September 6th 07 07:06 PM
Change values in multiple cells from one cell zeewaa Excel Worksheet Functions 1 April 4th 07 12:56 AM
Can I send results of a formula to multiple cells? Scarlett O Excel Programming 2 April 27th 05 06:28 AM


All times are GMT +1. The time now is 06:24 AM.

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"