ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Freezing a row (https://www.excelbanter.com/excel-programming/289306-freezing-row.html)

Guy Cohen

Freezing a row
 
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



Don Guillett[_4_]

Freezing a row
 
Have you tried the macro recorder? A good way to learn

--
Don Guillett
SalesAid Software

"Guy Cohen" wrote in message
...
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





Guy Cohen

Freezing a row
 
No I have not
I am a newbie :)
BTW- If possible please teach me how to do it from VB ;)
Guy

‏‏"Don Guillett" כתב בהודעה
...
Have you tried the macro recorder? A good way to learn

--
Don Guillett
SalesAid Software

"Guy Cohen" wrote in message
...
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







Tom Ogilvy

Freezing a row
 
vb or Excel VBA would be the same

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

--
Regards,
Tom Ogilvy



Guy Cohen wrote in message
...
No I have not
I am a newbie :)
BTW- If possible please teach me how to do it from VB ;)
Guy

‏‏"Don Guillett" כתב בהודעה
...
Have you tried the macro recorder? A good way to learn

--
Don Guillett
SalesAid Software

"Guy Cohen" wrote in message
...
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










All times are GMT +1. The time now is 06:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com