
Signature
---
HTH
Bob
(change the xxxx to gmail if mailing direct)
Thanks, I caught and changed the rng.NumberFormat to cl.Numberformat, here
is my adjusted code,
Dim rng As Range
Dim cl As Range
Set rng = Sheet1.Range("D6:D555")
For Each cl In rng
If Not cl.MergeCells Then
Selection.NumberFormat = "0.00"
End If
Next
but the range doesn't change to 2 decimal places.... What is wrong?
Thanks,
H
> Few bugs in the code
>
[quoted text clipped - 49 lines]
>>>>
>>>> Thanks in advance
Henry Jones - 25 Jan 2007 16:33 GMT
Hi Bob,
I didn't see the cl.numberformat you had changed. It works now,
Thank you
> Thanks, I caught and changed the rng.NumberFormat to cl.Numberformat, here
> is my adjusted code,
[quoted text clipped - 70 lines]
>>>>>
>>>>> Thanks in advance
galimi - 25 Jan 2007 16:42 GMT
Henry,
I have copied an example to http://www.HelpExcel.com/examples
The name is decimal.xls

Signature
http://HelpExcel.com
ed@helpExcel.com
> Thanks, I caught and changed the rng.NumberFormat to cl.Numberformat, here
> is my adjusted code,
[quoted text clipped - 69 lines]
> >>>>
> >>>> Thanks in advance
Henry Jones - 25 Jan 2007 16:51 GMT
Thanks for the code sample. I did get it working and I appreciate your help
> Henry,
>
[quoted text clipped - 81 lines]
>> >>>>
>> >>>> Thanks in advance
galimi - 25 Jan 2007 16:42 GMT
You need to change selection.numberformat to cl.numberformat

Signature
http://HelpExcel.com
ed@helpExcel.com
> Thanks, I caught and changed the rng.NumberFormat to cl.Numberformat, here
> is my adjusted code,
[quoted text clipped - 69 lines]
> >>>>
> >>>> Thanks in advance
Thanks Bob.

Signature
http://HelpExcel.com
ed@helpExcel.com
> Few bugs in the code
>
[quoted text clipped - 49 lines]
> >>>
> >>> Thanks in advance