使用列号删除多个列 [英] Delete multiple columns using column numbers

查看:112
本文介绍了使用列号删除多个列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只需要分享,因为我有很多麻烦寻找在线方式,终于得到了一系列的试错。

Just wanted to share as I had huge amount of trouble looking for ways to do this online and have finally gotten it through series of trial and error.

Sheet1。范围(单元格(1,11),单元格(1,100))。EntireColumn.Delete

Sheet1.Range(Cells(1, 11), Cells(1, 100)).EntireColumn.Delete

这将删除列11到100。

This deletes columns 11 to 100.

推荐答案

With Sheet1
    .Range(.Cells(1, 11), .Cells(1, 100)).EntireColumn.Delete
End With

这篇关于使用列号删除多个列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆