Skip to main content

Posts

Showing posts with the label VBA

Excel freeze panes in vbscript or lotusscript

Freeze 1st row of excel: Set xlApp = CreateObject("Excel.Application") xlApp.Rows(2).Select xlApp.ActiveWindow.FreezePanes = True Freeze 1st column of excel: Set xlApp = CreateObject("Excel.Application") xlApp.Columns(2).Select xlApp.ActiveWindow.FreezePanes = True Freeze 1st row AND 1st column of excel: Set xlApp = CreateObject("Excel.Application") xlApp.Range("B2").Select xlApp.ActiveWindow.FreezePanes = True