Hi. I am terrible with loops. Would a kind person help turn this bit of code into a loop that can end either at the first blank line in Col A so this can be more efficient than recopying code over and over.
Can this also be separately done by specifying in a prompt or entry or just in the vba itself how many lines it should scan down in Col A?
Thanks a lot!
-Gabriel
Sub CopyTPM2ExcelNew()
' Item 1 start
Range ("A2: A25"). Select Selection.Copy
Range ("D2"). Select
Selection. PasteSpecial Paste:=xlPasteAll, Operation
lNone, SkipBlanks:= -
False, Transpose:-True
Range ("A2") . Select
Application. CutCopyMode = False
Range ("A2: A25") - Select Selection. ClearContents
Selection. Delete
Shift:=xlUp
Range ("A2"). Select
'Item 1 end
"Item 2 start
Range ("A2: A25"). Select Selection. Copy
Range ("D3") - Select
Selection. PasteSpecial Paste
lPasteAll, Operation
lNone, SkipBlanks:=
False, Transpose:-True
Range ("A2") - Select
Application. CutCopyMode - False
Range ("A2: A25") -Select Selection. ClearContents
Selection. Delete Shift
lUp
Range ("A2") . Select
' Item 2 end
End Sub
Can this also be separately done by specifying in a prompt or entry or just in the vba itself how many lines it should scan down in Col A?
Thanks a lot!
-Gabriel
Sub CopyTPM2ExcelNew()
' Item 1 start
Range ("A2: A25"). Select Selection.Copy
Range ("D2"). Select
Selection. PasteSpecial Paste:=xlPasteAll, Operation

False, Transpose:-True
Range ("A2") . Select
Application. CutCopyMode = False
Range ("A2: A25") - Select Selection. ClearContents
Selection. Delete
Shift:=xlUp
Range ("A2"). Select
'Item 1 end
"Item 2 start
Range ("A2: A25"). Select Selection. Copy
Range ("D3") - Select
Selection. PasteSpecial Paste


False, Transpose:-True
Range ("A2") - Select
Application. CutCopyMode - False
Range ("A2: A25") -Select Selection. ClearContents
Selection. Delete Shift

Range ("A2") . Select
' Item 2 end
End Sub