在Excel中删除所有完全空白的行 [英] Remove all completely blank rows in Excel

查看:464
本文介绍了在Excel中删除所有完全空白的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在当前的工作簿中使用了几千行。
但是有几百行完全是空白的。

I have a couple thousand rows being used in a current workbook. However there are several hundred rows that are entirely blank.

如何选择每一行(只有那些完全空白)并删除它们

How can I select every row (only those that are entirely blank) and remove them?

推荐答案

有两种方法可以实现:

<强> 1。使用VBA:

有一个VBA脚本这个链接。使用第一个脚本,我的意思是 DeleteBlankRows

There is a VBA script here in this link. Use the first script, I mean DeleteBlankRows.

您还可以从这里

如何使用:

Copy the code.
In Excel press Alt + F11 to enter the VBE.
Press Ctrl + R to show the Project Explorer.

Insert -> Module.
Paste code.
Save and Exit VBE.

运行代码:

Select the column with blank rows.
Press Alt + F8 to open the macro dialog box.
Select DeleteBlankRows
Click Run.

2。没有VBA:

只需检查链接。这很容易,所以没有必要在这里再说一遍。

Just check the link here. It is easy so no need to explain again here.

这篇关于在Excel中删除所有完全空白的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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