LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default copier sur la prochaine ligne vide

I don't follow, try and explain with examples including addresses for
selection, range to be copied and the basis for determining the destination.
Is "Rapport des transactions" same sheet as the Target or another sheet.

What happens if Target is more than one cell.

this will never work -
taddress = (1, Target.Column).End(xlDown).Address

Did you try the example I posted, maybe you can adapt.

Regards,
Peter T


wrote in message
oups.com...
ok i change a few thing

Here is my macro now:

Private Sub Worksheet_Change(ByVal Target As Range)

If Intersect(Target, Range("A33:O49")) Is Nothing Then Exit Sub
If Range("O" & Target.Row) = "" Then Exit Sub
Target.EntireRow.Copy
Application.EnableEvents = False

taddress = (1, Target.Column).End(xlDown).Address

With Sheets("Rapport des transactions")
.Range(taddress).PasteSpecial xlPasteAll
End With

Application.EnableEvents = True

End Sub

I'm trying to copy my info in the first empty row of sheet "Rapport des
Transactions" in the same column as the target. What should i change
because it doesn't work?

Thank you
MP



 
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
Double A copier paper.....0.80USD cblpaper1 Excel Discussion (Misc queries) 0 March 1st 11 02:29 PM


All times are GMT +1. The time now is 12: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"