Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel - Last cell used
Message
 
À
12/05/2005 11:47:55
Justin Roper
The Cadle Company
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01013459
Message ID:
01013464
Vues:
12
This may help:
*xlLastCell=11
*xlR1C1 = -4150
lcLastCell = ObjExcel.ActiveSheet.Range("A1").SpecialCells(xlLastCell).Address(.f.,.f.,xlR1C1)
?ObjExcel.ActiveSheet.UsedRange.Rows.Count
?ObjExcel.ActiveSheet.UsedRange.Columns.Count

>Hi everyone,
> I am working on a project where I open an existing excel sheet and add information to it from a DBF file. So far I figured out how to open the spreadsheet and add to it but I am having trouble finding out what column I can start at. I don't want to write over data that is already there. Does anyone know how to find the first available column? I think the concept is to go end of the spreadsheet "A65536" and then CRTL+END but having trouble getting it to work. Any help would be greatly appreciated.
>Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform