Results 1 to 15 of 15

Thread: [Resolved]Cell Formats - hh:mm:ss converts to dd/mm/yy hh:mm:ss

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    England
    Posts
    234

    Resolved [Resolved]Cell Formats - hh:mm:ss converts to dd/mm/yy hh:mm:ss

    Hi,

    I am extracting values in the format of hh:mm:ss from one spreadsheet and storing it into a string
    i then add the value stored in that string to another value stored in another string(hh:mm:ss)

    when i then paste the new value into another workbook, the format becomes
    dd/mm/yy hh:mm:ss
    and in the example below the format of the destination cell becomes "scientific", although i had already set the format to hh:mm:ss

    do you know how i can sort this, is it because i am adding variables using cells?

    here is an example of part of the code, as this is kinda hard to explain
    the variables that end in "t" are my temp variables


    VB Code:
    1. 'location of unavailable
    2.     ranPers.Cells(201).Select
    3.     strUnavailt = ActiveCell.Value
    4.     Range("K1").Value = strUnavailt
    5.     Range("K2").Value = strUnavail
    6.     Range("K3").Formula = "=sum(K1:K2)"
    7.     strUnavail = Range("K3").Value
    8.     Range("K1:K3").Clear
    Last edited by Mitch_s_s; Feb 9th, 2007 at 09:50 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width