title: excel vba freeze pane without select
body: <p>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:                                                </p>
  
  <pre><code>ActiveSheet.Range("A8").Select
  ActiveWindow.FreezePanes = True
  </code></pre>
  
  <p>Any suggestions?</p>