Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert report form to excel
Message
De
29/03/2016 09:43:25
 
 
À
28/03/2016 13:31:24
Sonny Tabano
Trams Printwork, Inc.
Mabalacat, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01631673
Message ID:
01633926
Vues:
111
J'aime (1)
>Hi martina,
>
>oExcel.Cells(rows,Cols+5).Formula = "=SUM(F8:F&rows)" result is #NAME?
>
>any suggestion on how i can find references on this?
>
>thanks

The problem here is almost certainly the macro. Try building the string in pieces:

oExcel.Cells(rows,Cols+5).Formula = "=SUM(F8:F" + TRANSFORM(m.rows) + ")"

In general, search for Excel VBA for resources as to what the appropriate Excel objects and PEMs are. You'll find an introduction to Office Automation on my site at http://www.tomorrowssolutionsllc.com/Conference%20Sessions/Getting%20Started%20with%20Office%20Automation.pdf. You might also find the book Della Martin and I wrote about the subject useful: http://hentzenwerke.com/catalog/autofox.htm

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform