Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经尝试了在互联网上可以找到的各种可能的解决方案,但是...
目的是清除内容并保留公式。下面的范围确实有导致值(文本)的公式,但我不断收到“未找到单元格”错误。我知道我可以用“On Error Resume Next”和“On Error GoTo 0”来处理它,但范围没有被清除
ActiveSheet.Range("A5:F5").SpecialCells(xlCellTypeConstants).ClearContents
请阐明这个问题。
谢谢!