+ Reply to Thread
Results 1 to 8 of 8

VB Code to reorganize ClockINOut

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to reorganize ClockINOut

    Hello:

    Please refer to attached file.
    Name of Sheet "Source" and "Dest"
    I have data in this sheet from row 600 column A:D down as shown. (Diff Date)
    I need VB Code to rearrange the data as explain below.

    Choose the first data cell A600, enter that date at "Dest" Cell A2.
    Enter corresponding employee name in cell B2, 1st ClockIn in cell C2, 2nd clockin in cell D2 and so on.

    I have manually done this in sheet "Dest", please have a look.

    Let me know if you have any questions.
    Thanks.
    Riz
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: VB Code to reorganize ClockINOut

    Hello Riz,

    Do you want the data to overwrite any existing data on the Destination sheet?

    Do you want a blank line between dates on the Destination sheet?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to reorganize ClockINOut

    Hi Leith:

    Overwrite existing data..
    No blank lines
    Please let me know if you have any questions.
    Thanks.

    Riz

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: VB Code to reorganize ClockINOut

    Hello Riz,

    This macro has been added to the attached workbook. It will organize the data as you requested. To run it it use the ALT+F8 keys to choose from the list. Of course, you can always attach it to a button.

    Currently, the macro is set to a maximum of 5 Clock-In/Out periods per employee. This can be changed if needed.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to reorganize ClockINOut

    Hi Leith:

    Thanks a lot......works super
    Would it be possible to add total hours worked in column M of DEST sheet.
    (Note : (ClockOut1-ClockIn1 + ClockOut2-ClockIn2+ClockOut3-ClockIn3 and so on
    Riz
    Last edited by rizmomin; 03-29-2016 at 11:16 PM.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: VB Code to reorganize ClockINOut

    Hello Riz,

    That was a fast response! You're welcome.

  7. #7
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to reorganize ClockINOut

    Hi Leith:

    Would you please help again on this thread.
    The Source Data would not have any blank rows, so please help modify the code so that it does the same function.
    Thanks

    Riz

  8. #8
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to reorganize ClockINOut

    Hi Leith:

    Never mind, got help from AB33.

    Riz

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VB Code to reorganize data
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-29-2016, 04:24 PM
  2. I need to reorganize the data with VBA
    By baetienne in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2014, 03:40 PM
  3. Reorganize data
    By Kayline in forum Excel General
    Replies: 6
    Last Post: 03-06-2013, 11:57 AM
  4. Reorganize data
    By ngpm515 in forum Excel General
    Replies: 0
    Last Post: 11-02-2011, 05:19 PM
  5. reorganize within one cell
    By Rnash in forum Excel General
    Replies: 8
    Last Post: 07-11-2010, 07:10 AM
  6. Reorganize data
    By pentiumeric in forum Excel General
    Replies: 13
    Last Post: 07-13-2009, 04:32 AM
  7. [SOLVED] Reorganize list
    By DWeb in forum Excel General
    Replies: 2
    Last Post: 04-05-2005, 03:06 PM

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