K
Keith Kaminetzky
Just started trying my hand at these.
I have the following module which copies data from two cells side by side,
copies it to the two rows beneath and keeps going. I want this to repeat
till it runs out of entries. I know the technique is looping but no idea
where to start. here is the code
TIA KK
Sub Macro2()
'
' Macro2 Macro
' Macro recorded 11/15/2003 by
'
' Keyboard Shortcut: Ctrl+n
'
ActiveCell.Range("A1:B1").Select
Selection.Copy
ActiveCell.Offset(1, 0).Range("A1:A2").Select
ActiveSheet.Paste
ActiveCell.Offset(2, 0).Range("A1:B1").Select
Application.CutCopyMode = False
Selection.Copy
ActiveCell.Offset(1, 0).Range("A1:A2").Select
ActiveSheet.Paste
End Sub
I have the following module which copies data from two cells side by side,
copies it to the two rows beneath and keeps going. I want this to repeat
till it runs out of entries. I know the technique is looping but no idea
where to start. here is the code
TIA KK
Sub Macro2()
'
' Macro2 Macro
' Macro recorded 11/15/2003 by
'
' Keyboard Shortcut: Ctrl+n
'
ActiveCell.Range("A1:B1").Select
Selection.Copy
ActiveCell.Offset(1, 0).Range("A1:A2").Select
ActiveSheet.Paste
ActiveCell.Offset(2, 0).Range("A1:B1").Select
Application.CutCopyMode = False
Selection.Copy
ActiveCell.Offset(1, 0).Range("A1:A2").Select
ActiveSheet.Paste
End Sub