Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to protect an Excel column ???
Message
 
À
23/02/2007 05:25:21
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Divers
Thread ID:
01198231
Message ID:
01198237
Vues:
17
LOCAL oExcel AS Excel.Application
oExcel = CREATEOBJECT([Excel.Application])
oExcel.Workbooks.Add()
oExcel.Columns("E:Z").Select() && Unlock cells from E to Z
oExcel.Selection.Locked = .f.

oExcel.Columns("A:D").Select() && Lock cells from E to Z
oExcel.Selection.Locked = .t.
oExcel.Selection.FormulaHidden = .f.

*** Protect the sheet
oExcel.ActiveSheet.Protect(, .t., .t., .t.)
oExcel.Visible = .t.
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