Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to freeze Excel top row via automation?
Message
 
À
29/05/2009 16:10:26
Information générale
Forum:
Microsoft Office
Catégorie:
Excel
Divers
Thread ID:
01402693
Message ID:
01402697
Vues:
44
This message has been marked as the solution to the initial question of the thread.
>How can I do the following things from VFP via Excel?
>
>1) Freeze the top row of a spreadsheet
>2) Turn on auto-filter
>
>I already have a reference to the excel object (loExcel) and can refer to the active worksheet (loExcel.ActiveWorksheet).
>
>More generally, where can one find that kind of information so you don't need to ask the wonderfully helpful folks of the UT?
>
>Grateful as always,
>
>Alex
o.ActiveWindow.FreezePanes=.f.
o.ActiveWindow.splitrow=1
o.ActiveWindow.FreezePanes=.t.

o.ActiveSheet.usedrange.AutoFilter    && set for range or selection and turn it on
o.Activesheet.AutoFilterMode=.f.  && turn it off
Best Wishes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform