A big thanks to you Martin and to Chip,
It works! but, and i know this may be beyond the scope of the usenet
group, but -
- for example i entered 1230 and i get 12:30:00 which is correct,
however, i would like the cell to display only 12:30 without having to
reformat anything
probably a simple edit somewhere in the vba code would take care of
that,
and i could "tinker' with it, but if any further guidance is possible,
then i would
really appreciate it . . .
thanks again,
RonW.
> Hi Ron,
>
[quoted text clipped - 21 lines]
>
> > RonW
MartinW - 30 Oct 2007 10:46 GMT
Hi Ron,
No need to tweak the code, just format your cells
as you normally would.
In your case sounds like custom hh:mm is what you need.
HTH
Martin
>A big thanks to you Martin and to Chip,
>
[quoted text clipped - 38 lines]
>>
>> > RonW
T. Valko - 30 Oct 2007 18:15 GMT
I'm not the best VBA programmer but changing this line seems to work ok:
.Value = TimeValue(TimeStr)
Change to:
.Value = Format(TimeValue(TimeStr), "h:mm")
It will still display in the *formula bar* as h:mm:ss

Signature
Biff
Microsoft Excel MVP
>A big thanks to you Martin and to Chip,
>
[quoted text clipped - 38 lines]
>>
>> > RonW