Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting values of all cells in a range, one by one
Message
De
13/09/2010 07:50:56
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01480894
Message ID:
01480946
Vues:
43
>Hi,
>
>When using Excel automation, say I want to get values from a range of cells (e.g. A3 to G200), how do you do it? I mean, one cell at a time. I think it would involve setting FOR NEXT but I can't think of how to do it for letters of the cell.
>
>TIA for any suggestions.


loRange = oExcel.ActiveWorkBook.ActiveSheet.Range("A3:G200")

for row = 1 to loRange.Rows.Count
for col = 1 to loRange.Columns.Count
luValue = loRange.Cells( m.row, m.col ).Value
endfor
endfor

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform