C
Chuck W
Hi, I trying to write my first macro and having problems I have a
list in column A that I want to cut and copy to column C but I want to
have the results on every other row. I'm also trying to learn to do
loops. I used the "Record Macro" feature to do the first two items. I
want to add a loop to this code. Here it is:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 9/7/2003 by
'
' Keyboard Shortcut: Ctrl+c
'
Selection.Cut
Range("C1").Select
ActiveSheet.Paste
Range("A2").Select
Selection.Cut
Range("C3").Select
ActiveSheet.Paste
End Sub
1. I think that I must change ranges from specific cells "C1" to
something else so that macro will nolt return there but I don't know
what.
2. Where do I put the "For" and what do I put after it .
3. using Do until I tried "i"1 to 50 but that didn't work for me.
As you can see I am completely lost. I want not only to solve this
problem but to learn enough about them to apply them to similar
situations.
Thanks,
Chuck
list in column A that I want to cut and copy to column C but I want to
have the results on every other row. I'm also trying to learn to do
loops. I used the "Record Macro" feature to do the first two items. I
want to add a loop to this code. Here it is:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 9/7/2003 by
'
' Keyboard Shortcut: Ctrl+c
'
Selection.Cut
Range("C1").Select
ActiveSheet.Paste
Range("A2").Select
Selection.Cut
Range("C3").Select
ActiveSheet.Paste
End Sub
1. I think that I must change ranges from specific cells "C1" to
something else so that macro will nolt return there but I don't know
what.
2. Where do I put the "For" and what do I put after it .
3. using Do until I tried "i"1 to 50 but that didn't work for me.
As you can see I am completely lost. I want not only to solve this
problem but to learn enough about them to apply them to similar
situations.
Thanks,
Chuck