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:
ActiveSheet.Range("A8").Select
ActiveWindow.FreezePanes = True
Any suggestions?
See Question&Answers more detail:os