Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
delete multiple columns with one line?
Is there a way to replace this:
With Worksheets("Dif_data") Columns("G:G").Delete Columns("O:O").Delete Columns("AB:AC").Delete End With With something shorther like: Columns("G:G, P:P, AD:AE").Delete (Doesn't work like this because I get this type mistmatch error 13) |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
delete multiple columns with one line?
Bruce,
Try Range("G:G, P:P, AD:AE").Delete -- Cordially, Chip Pearson Microsoft MVP - Excel www.cpearson.com "Bruce Roberson" wrote in message ... Is there a way to replace this: With Worksheets("Dif_data") Columns("G:G").Delete Columns("O:O").Delete Columns("AB:AC").Delete End With With something shorther like: Columns("G:G, P:P, AD:AE").Delete (Doesn't work like this because I get this type mistmatch error 13) |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
delete multiple columns with one line?
That works. Thanks for the assistance.
Bruce -----Original Message----- Bruce, Try Range("G:G, P:P, AD:AE").Delete -- Cordially, Chip Pearson Microsoft MVP - Excel www.cpearson.com "Bruce Roberson" wrote in message ... Is there a way to replace this: With Worksheets("Dif_data") Columns("G:G").Delete Columns("O:O").Delete Columns("AB:AC").Delete End With With something shorther like: Columns("G:G, P:P, AD:AE").Delete (Doesn't work like this because I get this type mistmatch error 13) . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Delete rows with multiple columns with 0 value | Excel Discussion (Misc queries) | |||
How do I delete rows and multiple columns automatically? | Excel Discussion (Misc queries) | |||
Delete Formula Based on Multiple Columns | Excel Discussion (Misc queries) | |||
VBA Delete row based on multiple columns of data | Excel Discussion (Misc queries) | |||
Formula to delete blank cells across multiple columns? | Excel Worksheet Functions |