如何在数据范围的右下角删除所有空的未使用的行和列? [英] How do you remove all empty unused rows and columns at the right and bottom of your data range?

查看:149
本文介绍了如何在数据范围的右下角删除所有空的未使用的行和列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心放大了我正在工作的数据范围,现在侧面和底部的滚动条不会重置。我以前有这个问题,我发现如何做,但是现在我已经忘记了:/有谁知道这个伎俩,我认为它涉及使用Ctrl + End找到活动工作表的最后一个单元格,但是我不能相当回忆。

I accidentally enlarged the data range I was working on and now the scroll bars on the sides and bottom won't reset. I had this problem before and I found out how to do it, but now I've forgotten :/ Does anyone know the trick, I think it involves using Ctrl+End to locate the last cell of the active worksheet but I can't quite recall.

这是用于Excel btw。

This is for Excel btw.

谢谢。

推荐答案


  • 转到单元格A1(不是真的必要)

  • 点击Alt-F11打开VBA编辑器

  • 打开立即窗口(如果尚未打开)

  • 键入: ActiveSheet.UsedRange + 输入(没有回应)

    • Goto cell A1 (not really necessary)
    • Hit Alt-F11 to open VBA editor
    • Open Immediate Window (if not already opened)
    • Type: ActiveSheet.UsedRange+Enter (there will be no response)

      完成(可以关闭VBA编辑器)

      Done (you can close VBA editor)

      这篇关于如何在数据范围的右下角删除所有空的未使用的行和列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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