Hi everyone,
first up - apologies for the very beginner level question, I have never learnt VBA and don't use it much, so I typically just play around until I get it to do what I want. No hate!
I am looking to cut down my code a little on 4 lines that I use quite a lot, which is basically just a copy or cut and paste. Here is an example:
Basically selecting an entire column (except the header) and pasting it to another area. What is an easier and cleaner way to accomplish this without having 4 lines of code, every time I do that? My current Macro does it about 8 times, so lots of unnecessary code.
I've played around with it a little and Google'd a bit, but none of that worked for me.
Thanks!
nunuc
first up - apologies for the very beginner level question, I have never learnt VBA and don't use it much, so I typically just play around until I get it to do what I want. No hate!
I am looking to cut down my code a little on 4 lines that I use quite a lot, which is basically just a copy or cut and paste. Here is an example:
Code:
Range("C2").Select
Range(Selection, Selection.End(xlDown)).Copy
Range("T2").Select
ActiveSheet.Paste
Basically selecting an entire column (except the header) and pasting it to another area. What is an easier and cleaner way to accomplish this without having 4 lines of code, every time I do that? My current Macro does it about 8 times, so lots of unnecessary code.
I've played around with it a little and Google'd a bit, but none of that worked for me.
Thanks!
nunuc