Help with Excel FreezePanes from code
I can't get this to work. Please help. Here's my code:
Dim xl As New Spreadsheet xl.Selection.Cells(2, 2).Activate() xl.ActiveWindow.FreezePanes = True There's no errors . . . it just doesn't set up the FreezePanes stuff. |
Help with Excel FreezePanes from code
Dim xl As Worksheet
Set xl = Activesheet xl.Selection.Cells(2, 2).Activate() xl.ActiveWindow.FreezePanes = True -- Regards, Tom Ogilvy "lanem" wrote: I can't get this to work. Please help. Here's my code: Dim xl As New Spreadsheet xl.Selection.Cells(2, 2).Activate() xl.ActiveWindow.FreezePanes = True There's no errors . . . it just doesn't set up the FreezePanes stuff. |
Help with Excel FreezePanes from code
That did not help.
BTW, I'm doing this from ASP.NET 2.0 using VB.NET. Thanks anyway. "Tom Ogilvy" wrote: Dim xl As Worksheet Set xl = Activesheet xl.Selection.Cells(2, 2).Activate() xl.ActiveWindow.FreezePanes = True -- Regards, Tom Ogilvy "lanem" wrote: I can't get this to work. Please help. Here's my code: Dim xl As New Spreadsheet xl.Selection.Cells(2, 2).Activate() xl.ActiveWindow.FreezePanes = True There's no errors . . . it just doesn't set up the FreezePanes stuff. |
All times are GMT +1. The time now is 05:41 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com