Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Graph
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Re: Graph
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01114263
Message ID:
01116808
Views:
18
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform