On 9/12/07, Vince Teachout wrote:
> The quick lazy (I don't feel like looking up the code) answer is that
> you need SaveAs() instead of Save.  Try that, and if that doesn't get
> you far enough let me know and I'll get my lazy butt over to the folder
> where I keep that kind of stuff.  :)

Thanks Vince.  SaveAs() is indeed the answer.

On 9/12/07, Peter Hart wrote:
> Hi Gary
>
> Looked at some of my code which works in Excel 2007
>
> oExcel.ActiveWorkbook.SaveAs(lcFileName,xlExcel8)
>
> Cheers
>
> Peter
> Peter Hart Computers

And thanks to Peter for the full syntax.

Fox Wiki gave me the skinny on the xlExcel8 constant = 56.

One more quick question:

How do I format the current cell in Excel as Number, with 5 decimals?

I recorded a Macro in Excel and it said:

Selection.NumberFormat = "0.00000"

But, I can't work out how that translates to VFP.

I've tried:

oExcel.Range("A1").Select
oExcel.Range("A1").NumberFormat = '0.00000'

But the function result can still come back in scientific notation:

i.e. -1.66542711967825E-32

Grrr.

?

Cheers,

Garry


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to