Garry Bettle wrote:
> On 9/12/07, Garry Bettle wrote:
>
>> 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
>>
I haven't tried this with your problem, but can you use the sheet
Columns().Number format?
oSheet = oExcel.ActiveWorkbook.Sheets(1) && just a Shortcut name
for easier reading of code
oSheet.Activate && Make first worksheet active
* just a sample, substitute your own formats:
oSheet.Columns("O:O").NumberFormat = "#,###"
oSheet.Columns("P:P").NumberFormat = '_(* #,##0.00_);_(*
(#,##0.00);_(* ""-""??_);_(@_)' && Accounting Format
_______________________________________________
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.