Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following code that inserts a column next to the active column.
Sub AddColumnt() ActiveCell.Offset(0, 1).EntireColumn.Insert End Sub I would like to copy and paste A1:A10 into the new column. What do I need to add to the macro? Thanks so much! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Denise
You don't actually say where you want the range copied to but this amendment copies it to the cells adjacent to the active cell. Sub AddColumnt() ActiveCell.Offset(0, 1).EntireColumn.Insert Range("A1:A10").Copy ActiveCell.Offset(0, 1) End Sub Regards Trevor "Denise" wrote in message ... I have the following code that inserts a column next to the active column. Sub AddColumnt() ActiveCell.Offset(0, 1).EntireColumn.Insert End Sub I would like to copy and paste A1:A10 into the new column. What do I need to add to the macro? Thanks so much! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry it did get CF but not cell format (borders) or formulas
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert Column after specific text title the new column and add for | Excel Discussion (Misc queries) | |||
insert a blank column between each column in a data file | Excel Discussion (Misc queries) | |||
insert row / insert column command buttons | Excel Worksheet Functions | |||
Copy and paste versus copy and insert copied cells | New Users to Excel | |||
Move/Copy or Copy/Insert worksheet? | Excel Discussion (Misc queries) |