Freezing a row

  • Thread starter Thread starter Guy Cohen
  • Start date Start date
G

Guy Cohen

Hi all.
I am using VB6 to generate an EXCEL report.
I would like to set "Window->Freeze panes" to row number 1 by code.
How do I do that?
TIA
Guy
 
vb or Excel VBA would be the same

Activesheet.rows(2).Select
ActiveWindow.FreezePanes=True
 
Back
Top