Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How i to call up, EXCEL..... protect file
Message
De
21/05/2001 10:48:18
 
 
À
21/05/2001 07:43:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00509390
Message ID:
00509457
Vues:
20
You can save with a password and say .T. to lReadOnlyRecommented
oWorkBook.SaveAs(cFileName,cFileFormat,cPassword,cWriteResPassword,lReadOnlyRecommented)
>Hi, i use CREATEOBJECT to modity a EXCEL.
>how can i call up the PROTECT function in worksheet (file), that can
>not allow any user to modity my file (output).
>
>That is my part of program about call up the EXCEL file.
>
>*****
>OEXCEL = CREATEOBJECT("EXCEL.APPLICATION")
>OEXCEL.SHEETSINNEWWORKBOOK = 1
>OWORKBOOK = OEXCEL.WORKBOOKS.OPEN(MYFILE)
>OACTIVESHEET = OEXCEL.ACTIVESHEET
>OEXCELAPP = OEXCEL.APPLICATION
>WITH OEXCEL
> .CELLS(7,5).VALUE= "Document no : 12345"
>ENDWITH
>OWORKBOOK.SAVE()
>OWORKBOOK.CLOSE()
>OEXCEL.QUIT()
>*****


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform