Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Office Automation - Excel Question
Message
 
 
À
14/09/2010 20:06:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows NT
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01481195
Message ID:
01481202
Vues:
65
>How do you determine the number of records (rows containing data) in a column?
>
>Thanks,
>Robert Wright
>
>Oops ... I knew I had done this before but just couldn't remember how ... I found the answer in some old code:
>
>lnRecordCnt = VAL(STRTRAN(oExcel.RANGE("A65536").END(XLUP).Address,'$A$',''))
>
>
>Robert

I've used in the past:

FOR nRow = 1 TO oExcel.ActiveWorkBook.ActiveSheet.UsedRange.Rows.Count
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform