Excel resetting “UsedRange”

前端 未结 12 2068
醉酒成梦
醉酒成梦 2021-01-05 15:42

Don\'t know what I\'m missing, but the examples I see posted do not appear to work.

I import data from a web query. I set the query to clear unused cells when it re

12条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-05 16:08

    I double checked to make sure all the latests patches and service packs have been installed and they were.

    I'm running Windows 10 and Excel 2016 version 16.0.6568.2034

    I found that the range would only reset with the

    ActiveSheet.UsedRange.Clear
    

    And most importantly

    ActiveWorkbook.Save
    

    without the save command the range is not reset

提交回复
热议问题