ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Deleting Columns in a range through VBA (https://www.excelbanter.com/excel-programming/304858-re-deleting-columns-range-through-vba.html)

Frank Kabel

Deleting Columns in a range through VBA
 
Hi
try

sub foo()
columns(4).delete
columns(2).delete
end sub


--
Regards
Frank Kabel
Frankfurt, Germany


VJ wrote:
I have a range of four col A, B, C, and D and i need to keep col A
and C and delete column B and D through VBA code.

Need help.



All times are GMT +1. The time now is 12:09 PM.

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