ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   copying the column of the active cell to another column (https://www.excelbanter.com/excel-programming/292677-copying-column-active-cell-another-column.html)

Paul James[_5_]

copying the column of the active cell to another column
 
I would like to have VBA copy the entire column of the Activecell to another
column I specify, say Column J. How can I do this?

Thanks in advance.

Paul



Ron de Bruin

copying the column of the active cell to another column
 
Hi Paul

Sub test()
Columns(ActiveCell.Column).Copy Columns("J")
End Sub


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Paul James" wrote in message news:hPo%b.62463$Xp.307476@attbi_s54...
I would like to have VBA copy the entire column of the Activecell to another
column I specify, say Column J. How can I do this?

Thanks in advance.

Paul





Paul James[_3_]

copying the column of the active cell to another column
 
Your code "Columns(ActiveCell.Column).Copy Columns("J")" works great.

Thanks, Ron.

I was trying things like "Activecell.columns.copy" but of course that didn't
work.

Paul




All times are GMT +1. The time now is 04:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com