PDA

View Full Version : Solved: Delete just 2 column



parscon
02-11-2012, 06:22 AM
I need a VBA code to delete only 2 column of my sheet .

Column A-B and just delete column not row .

Thank you .

Bob Phillips
02-11-2012, 07:22 AM
Have you not tried


Columns("A:B").Delete

parscon
02-11-2012, 07:26 AM
Thank you so much it is a big help me , ibut i wrote wrong , i need to clean the data on these 2 column .

Thank you for your fast reply .

Bob Phillips
02-11-2012, 09:22 AM
With ActiveSheet

Intersect(.UsedRange, .Columns("A:B")).ClearContents
End With

parscon
02-11-2012, 10:46 AM
Thank you so much .