作者:诺 | 来源:互联网 | 2023-06-10 09:24
IhaveaVBAscriptinExcelthatfreezesthepanesofanExcelworksheet,butImcurioustoseeif
I have a VBA script in Excel that freezes the panes of an Excel worksheet, but I'm curious to see if this is possible without first selecting a range. Here's by code now which freezes rows 1 through 7:
我在Excel中有一个VBA脚本冻结了Excel工作表的窗格,但我很想知道如果没有先选择一个范围,这是否可行。现在通过代码冻结第1行到第7行:
ActiveSheet.Range("A8").Select
ActiveWindow.FreezePanes = True
Any suggestions?
有什么建议么?
2 个解决方案