Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS excel and freeze panes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
01005737
Message ID:
01005856
Vues:
13
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform