Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Linking with excel
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01408496
Message ID:
01408500
Views:
40
>hi all,
>I have an application that creates an excel file and have 2 problems.
>I need to format the cels to save them work so that they can enter something like 01/98 without excel trying to be clever and turning that into a date. I have tried the following
>
>OleApp.cells(lnCounter,4).NumberFormat = "@"
>
>but that does not work

For your first problem you have to set Fomat property to be "Text" before (not after) entering a value.

However, using Excel 2007 I could not figure out at the moment how to record a macro (don't see option/button), so can not translate it exactly into the code.


>My second problem is when reading the file back in I have a column that has a formula in it sum(G1*H1) but when I read it in I get errors. Normally when i read in from excel there is not a formula in the cell and this is the first time doing this, any pointer please.
>~M
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform