Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to protect an Excel column ???
Message
 
To
23/02/2007 05:25:21
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01198231
Message ID:
01198237
Views:
18
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform