AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,074
- Office Version
- 2019
- 2010
- Platform
- Windows
I'm building a Excel Workbook from Access after setting a new Excel.Application.
Set ws= objExcelApp.Workbooks.Open(Myfile).Sheets(1)
With this I am able to use methods ws.cells, ws.columns etc.
I would like to freeze the top row of sheets(1) but haven't been able to figure it out.
In Excel this would be
I am able to select the range of my Excel object, but would need some other way to FreezePanes.
Does anyone know if this is possible ?
Set ws= objExcelApp.Workbooks.Open(Myfile).Sheets(1)
With this I am able to use methods ws.cells, ws.columns etc.
I would like to freeze the top row of sheets(1) but haven't been able to figure it out.
In Excel this would be
Code:
Range("A2").Select
ActiveWindow.FreezePanes= true
I am able to select the range of my Excel object, but would need some other way to FreezePanes.
Does anyone know if this is possible ?