michelangelo
New Member
- Joined
- Nov 23, 2016
- Messages
- 6
I am looking for some help to make the below code a bit more efficient/elegant. Any help much appreciated. (note this is a sample, I use the same code 5 or 6 times hence I'm looking to shorten!).
If it helps I have the active sheet stored as sht from earlier in the code. LastRow, Next_Free_Row and today_green_col are integers created earlier in the code.
Any help would be much appreciated!
If it helps I have the active sheet stored as sht from earlier in the code. LastRow, Next_Free_Row and today_green_col are integers created earlier in the code.
ActiveSheet.Cells(LastRow, today_green_col).Select
ActiveSheet.Cells(LastRow, today_green_col).Copy
ActiveSheet.Cells(Next_Free_Row, today_green_col).Select
ActiveSheet.Cells(Next_Free_Row, today_green_col).Activate
ActiveSheet.Paste
ActiveSheet.Cells(LastRow, today_green_col).Copy
ActiveSheet.Cells(Next_Free_Row, today_green_col).Select
ActiveSheet.Cells(Next_Free_Row, today_green_col).Activate
ActiveSheet.Paste
Any help would be much appreciated!