Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel Automation
Message
De
22/05/2001 10:15:50
John Baird
Coatesville, Pennsylvanie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00509815
Message ID:
00509860
Vues:
18
Thanks a bunch. I tried range.usedrows. etc, but not UsedRange.

>John,
>
>Usually something like this works:
>
>xlLastCell=11
>xlR1C1 = -4150
>lcLastCell = ObjExcel.ActiveSheet.Range("A1").SpecialCells(xlLastCel).Address(.f.,.f.,xlR1C1)
>ObjExcel.ActiveSheet.UsedRange.Rows.Count
>ObjExcel.ActiveSheet.UsedRange.Columns.Count
>ObjExcel.ActiveSheet.Cells.Select && all used cells
>
>
>Yuri
>
>>>>>>>>>>>>>>>>>>>>>your message below
>Hi guys:
>
>Working with excel automation from vfp. How do I determine the active range of cells which contain data, i.e. the rightmost column intersected with the bottomost row that contain data?
>
>.rows.count returns 65,536 and columns.count returns 256.
>
>I thought about using loops and testing for empty, but there may be empty cells which would not return the proper column or row.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform