Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hidden columns in Excel
Message
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
Database:
Visual FoxPro
Divers
Thread ID:
01146393
Message ID:
01146468
Vues:
29
>>>INKEY() is just for my test, so I can switch between VFP and Excel to watch what happens) you must remove it in production. FreezePanes freezes all rows above selected and all columns in left of selection (selection is not included).
>>
>>Does it prevent it from modifying? I probably used the wrong word. I need the column headers to be exactly the same. In other words, they should not be able to change them. How can I accomplish that?
>
>O I see, you want to Lock the Cells, not to be showed if the user scrolls down.
>To protect first row:
>
>LOCAL oExcel AS Excel.Application
>oExcel = CREATEOBJECT([Excel.Application])
>oExcel.Workbooks.Add()
>oExcel.Cells.Select
>oExcel.Selection.Locked = .f.
>oExcel.Rows("1:1").Select
>oExcel.Selection.Locked = .t.
>oExcel.ActiveWorkbook.ActiveSheet.Protect(,.t.,,.t.)
>
>oExcel.Visible = .t.
>INKEY(0)
>
When you save file with Excel using
*#DEFINE xlDBF3	8
*#DEFINE xlDBF4 11
loExcel.ActiveWorkbook.saveas(m.tcDbfFile, 11)
is where a way to automatically assign code page?

Thanks.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform