Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to AllowFiltering on a protected sheet from VFP
Message
 
À
16/06/2005 09:47:42
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01023927
Message ID:
01023935
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>Hi all,
>
>How do I translate this Excel VBA command that sets the AllowFiltering:=True in VFP code?
>
>ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
> , AllowFiltering:=True
ActiveSheet.Protect("", .t., .t., .t., .f., .f., .f., .f., .f., .f., .f., .f., .f., .f., .t., .f.)
Here the complete syntax from HELP
expression.Protect(Password, DrawingObjects, Contents, Scenarios, UserInterfaceOnly, AllowFormattingCells, AllowFormattingColumns, AllowFormattingRows, AllowInsertingColumns, AllowInsertingRows, AllowInsertingHyperlinks, AllowDeletingColumns, AllowDeletingRows, AllowSorting, AllowFiltering, AllowUsingPivotTables)

DrawingObjects   Optional Variant. True to protect shapes. The default value is False.

Contents   Optional Variant. True to protect contents. For a chart, this protects the entire chart. For a worksheet, this protects the locked cells. The default value is True.

Scenarios   Optional Variant. True to protect scenarios. This argument is valid only for worksheets. The default value is True.

UserInterfaceOnly   Optional Variant. True to protect the user interface, but not macros. If this argument is omitted, protection applies both to macros and to the user interface.

AllowFormattingCells   Optional Variant. True allows the user to format any cell on a protected worksheet. The default value is False.

AllowFormattingColumns   Optional Variant. True allows the user to format any column on a protected worksheet. The default value is False.

AllowFormattingRows   Optional Variant. True allows the user to format any row on a protected. The default value is False.

AllowInsertingColumns   Optional Variant. True allows the user to insert columns on the protected worksheet. The default value is False.

AllowInsertingRows   Optional Variant. True allows the user to insert rows on the protected worksheet. The default value is False.

AllowInsertingHyperlinks   Optional Variant. True allows the user to insert hyperlinks on the worksheet. The default value is False.

AllowDeletingColumns   Optional Variant. True allows the user to delete columns on the protected worksheet, where every cell in the column to be deleted is unlocked. The default value is False.

AllowDeletingRows   Optional Variant. True allows the user to delete rows on the protected worksheet, where every cell in the row to be deleted is unlocked. The default value is False.

AllowSorting   Optional Variant. True allows the user to sort on the protected worksheet. Every cell in the sort range must be unlocked or unprotected. The default value is False.

AllowFiltering   Optional Variant. True allows the user to set filters on the protected worksheet. Users can change filter criteria but can not enable or disable an auto filter. Users can set filters on an existing auto filter. The default value is False.

AllowUsingPivotTables   Optional Variant. True allows the user to use pivot table reports on the protected worksheet. The default value is False.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform