Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Graph
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Re: Graph
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01114263
Message ID:
01116808
Vues:
17
but get the error message "Unable to set the number format property of the range class".

Can you help?


A little - I spent about 20 minutes playing around with this and I hope that what I found out can point you in the right direction.

First of all, you need to reference a specific column in the columns collection like so:
loColumn = o.Application.DataSheet.columns( 'B' )
Second of all, "Accounting" is a custom format, so what MsGraph wants is a format string. When I recorded a Macro in Excel, and set the NumberFormat of a column to Accounting, this is what Excel generated:
Selection.NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($* ""-""??_);_(@_)"
However, MsGraph did not like this format string. What you need to do is find the format string that MsGraph likes.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform