ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Delete Columns (https://www.excelbanter.com/excel-programming/428456-delete-columns.html)

Sal

Delete Columns
 
Sub DeleteColumns ( )

Range("K:K,M:M,P:P,S:S").Select
Selection.Delete Shift:=xlToLeft

End Sub


Is there a cleaner way to delete these columns than the code above?


Mike H

Delete Columns
 
maybe this

Range("K:K,M:M,P:P,S:S").Delete

mike


"Sal" wrote:

Sub DeleteColumns ( )

Range("K:K,M:M,P:P,S:S").Select
Selection.Delete Shift:=xlToLeft

End Sub


Is there a cleaner way to delete these columns than the code above?


Sal

Delete Columns
 
Exactly what I was looking for. Thank you for the help.

"Mike H" wrote:

maybe this

Range("K:K,M:M,P:P,S:S").Delete

mike


"Sal" wrote:

Sub DeleteColumns ( )

Range("K:K,M:M,P:P,S:S").Select
Selection.Delete Shift:=xlToLeft

End Sub


Is there a cleaner way to delete these columns than the code above?



All times are GMT +1. The time now is 12:00 AM.

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