Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS excel and freeze panes
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01005737
Message ID:
01005856
Views:
14
Borislav,
looks like this is what i'm looking for, thanks
Slán
~M


>>hi all,
>>I have a program that interacts with excel just fine but now i have to modify it and one requirement is to have a freeze pane at a particular point in there sheets (its at a different point in each sheet). is it possible to do something like OleApp.Rows.freeze?
>>Slán
>>~M
>
>
>Suppose oExcel is Excel Object in Your application, try this:
>
>
>***Workbooks("BOOK1.XLS").Worksheets("Sheet1").Activate
>
>
>With oExcel.ActiveWindow
>    .SplitColumn = 5  && Column # where you want to split and freeze pane
>    .SplitRow    = 5  && Row # where you want to split and freeze pane
>    .FreezePanes = .t.
>EndWith
>
>
>*** To Unfreeze
>
>With oExcel.ActiveWindow
>    .FreezePanes = .f.
>    .SplitColumn = 0
>    .SplitRow    = 0
>EndWith
>
Go raibh maith agat

~M
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform