CreativeUsername
Board Regular
- Joined
- Mar 11, 2017
- Messages
- 52
Hi,
I have a section of code that grabs a block of data and copies itself below 2x times. The data should overwrite the blanks at the end of the grabbed section each time.
What happens now is it goes to the end including the blanks that were just selected. I want to drop the data right below its self so that I have a triplication of it.
I have a section of code that grabs a block of data and copies itself below 2x times. The data should overwrite the blanks at the end of the grabbed section each time.
What happens now is it goes to the end including the blanks that were just selected. I want to drop the data right below its self so that I have a triplication of it.
Code:
Application.CutCopyMode = False '<----------- Clears clip board
Range(Range("E2"), Range("E2").End(xlDown)).Copy '<------------------ copies Accont numbers to new locaction 2x
For IDX = 1 To 2
Cells(Range("E2").End(xlDown).Row + 1, "E").Select
ActiveSheet.Paste
Next
Application.CutCopyMode = False [code]
I need it to stop at the blanks and drops the block on the first blank found. Hopefully I don't need to do surgery because this or something very close to it was working.
Thanks guys