Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting a Column
In a macro in workbook A I am trying to delete column A in
workbook SOA.xls. This code doesn't seem to work. Windows("SOA.xls").Columns("A").Delete What is worng with this syntax? TIA. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting a Column
What sheet? Workbooks or Windows don't have a Columns collection for you
delete anything from. Worksheets do. Workbooks("SOA.xls").ActiveSheet.Columns("A").Dele te Workbooks("SOA.xls").Worksheets(1).Columns("A").De lete Workbooks("SOA.xls").Worksheets("Sheet 1").Columns("A").Delete should all work -- George Nicholson Remove 'Junk' from return address. "Ken" wrote in message ... In a macro in workbook A I am trying to delete column A in workbook SOA.xls. This code doesn't seem to work. Windows("SOA.xls").Columns("A").Delete What is worng with this syntax? TIA. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Deleting every nth through every nth row in a column | Excel Discussion (Misc queries) | |||
Deleting nth row or column | Excel Discussion (Misc queries) | |||
Deleting a column | Excel Discussion (Misc queries) | |||
Deleting content in a column | Excel Worksheet Functions | |||
Deleting a row with 0 in column A | Excel Programming |