More efficient code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to move column E over to column A (column A is empty). Is there a
more efficient way (ideally using 1 line of code) to write the code for this
operation other than:

ActiveSheet.Columns("E:E").Cut
ActiveSheet.Range("A1").Select
ActiveSheet.Paste

Thanks in advance for any help.
Bob
 
HI

You could try something like this

ActiveSheet.[E:E].Cut Destination:=[A:A]

hope it helps

S
 
activesheet.columns("C:C").cut activesheet.range("A1")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
"S" and Bob,
Thanks for your help. As always, I greatly appreciate it.
Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top