Freeze pane
Hi Joe,
To split the active workbook at (say) row 2, try:
Sub Tester()
With ActiveWindow
.SplitColumn = 0
.SplitRow = 2
.FreezePanes = True
End With
End Sub
Adjust the row (and column) number to suit.
To remove the split ,
Sub Unsplit()
With ActiveWindow
.SplitColumn = 0
.SplitRow = 0
End With
End Sub
To delete the contents of a cell:
Range("A2").ClearContents
To delete the contents of a cell and remove its formatting:
Range("A2").Clear
---
Regards,
Norman
"Joe" wrote in message
...
Hi,
How can VBA be coded to specify a particular row that can
freeze pane? also, how can using the ".clear" method code
that will delete the unwanted cell(in row) that is not
required?
regards,
Joe
|