+ Reply to Thread
Results 1 to 10 of 10

macro error Copy Time format to other Worksheet and continues copy range

  1. #1
    Registered User
    Join Date
    06-06-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    99

    macro error Copy Time format to other Worksheet and continues copy range

    Hi everyone!!

    Good Day!!

    I have a issue with the next macro:

    Please Login or Register  to view this content.
    Thanks again for everyting!

    Best Regards!

  2. #2
    Registered User
    Join Date
    06-06-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: macro error Copy Time format to other Worksheet and continues copy range

    Master Time Tracking Low Voltage_test.xlsm Help!!

    This is the file..

    Thanks again!

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: macro error Copy Time format to other Worksheet and continues copy range

    Why is 00/01/1900 08:30:00 a.m and error?

    If that's supposed to be 08:30 then it's just not formatted properly.

    Perhaps you could fix that in your GetData function/sub.

    Is the 2nd problem that the formula is copied down to the last row in the worksheet?

    If it is try going up instead of down.
    Please Login or Register  to view this content.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: macro error Copy Time format to other Worksheet and continues copy range

    The code in your workbook is password protected.

  5. #5
    Registered User
    Join Date
    06-06-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: macro error Copy Time format to other Worksheet and continues copy range

    ahh sorry!!.. the password is "tm22064900"

    Sorry!!!

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: macro error Copy Time format to other Worksheet and continues copy range

    Have you tried adding some code to format the data after you've got it?

    I've no data to test with so I don't know what that code would be but it would be pretty straightforward.

  7. #7
    Registered User
    Join Date
    06-06-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: macro error Copy Time format to other Worksheet and continues copy range

    This is the 2 files:

    Report.xlsm (is the time tracker client)
    Master Time Tracking Low Voltage_test (is the worksheet to copy the data & create the report).

    Thanks again!!
    Last edited by feroguz; 10-25-2012 at 01:32 PM.

  8. #8
    Registered User
    Join Date
    06-06-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: macro error Copy Time format to other Worksheet and continues copy range

    You really think Norie.. it's that simple?

    Each day I learn more of you ..
    But there are some things I don't understand, but thanks for your help!

  9. #9
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: macro error Copy Time format to other Worksheet and continues copy range

    Well, I've not actually seen what exactly needs to be done so perhaps I'm being a bit optimistic.

    Hopefully I'll see what's going on now you've uploaded the data file.

    Give this a try.
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    06-06-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: macro error Copy Time format to other Worksheet and continues copy range

    Works Very Fine Sr!

    I see that the changes were added is:

    Please Login or Register  to view this content.
    Variant Declaration

    Please Login or Register  to view this content.
    The conditional with the format in the range..
    .Range("F7:G" & LastRow).NumberFormat = "hh:mm"
    Last edited by feroguz; 10-25-2012 at 01:33 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1