Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Automation and Formatting Cells (Columns)
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00710938
Message ID:
00711025
Views:
15
Thanx, I will play with that.

>Examples are below, though they may not represent what you actually need.
>Try to record a macro in Excel when formatting columns/cells as you need, and translate vba code to foxpro.
>
>Objexcel.Range("b4").NumberFormat = "0;-0;;@"
>Objexcel.columns("B:B").NumberFormat ="$#,##0.00_);[Red]($#,##0.00);;@"
>
>>Does anyone have a code example of formatting a cell through automation?
>>
>>I create spread sheets through automation and unfortunately, some columns have numbers with leading zeros. The leading zeros are removed unless I change category to text in the Format Cells dialog.
>>
>>Thanx.
Fred Lauckner

You know, it works on my computer. I don't know what your problem is.

.Net aint so bad.
Previous
Reply
Map
View

Click here to load this message in the networking platform