+ Reply to Thread
Results 1 to 2 of 2

VBA to match, copy and paste times into different workbook

  1. #1
    Registered User
    Join Date
    06-26-2014
    Location
    Scotland
    MS-Off Ver
    10
    Posts
    37

    Question VBA to match, copy and paste times into different workbook

    I receive daily email attachments which has start and finishing times of each employee from the previous day.
    eg:
    Date Name Start Finish
    17/10/14 John Smith 08:00 17:00
    17/10/14 Joe Bloggs 09:00 19:00
    17/10/14 Teresa Green 06:20 16:30
    17/10/14 Bob Brown 19:10 05:00

    I also have a spreadsheet set up where i manually enter these time and use formulas to determine hours worked ect
    eg:
    Date Name Date Name
    Start Finish Start Finish
    17/10/14 08: 17:00 - - - - 09:00 18:30 - - - -

    (The blank columns have formulas in them)

    My goal is to match both the name and the date and extract the times from the email attachment to populate the workbook I have created.
    any help or even links to webpages are greatly appreciated !

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,698

    Re: VBA to match, copy and paste times into different workbook

    The raw data format is MUCH better that your target layout. If you have more than one set of data on a row, or group of rows, you will make subsequent analysis a lot more difficult.

    Just bring all the raw data into a simple two dimensional table. You can add formulae to each row if you need to but you might be able to do the analysis in a Pivot Table.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Copy info from files and paste to second workbook many times.
    By Bikeman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-19-2014, 01:46 PM
  2. Copy column based on partial word match in first row and paste into existing workbook
    By David Harris 1987 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2013, 03:52 PM
  3. Copy column based on partial word match in first row and paste into existing workbook
    By David Harris 1987 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2013, 01:02 PM
  4. Excel: match, vlookup in other workbook, copy and paste in old workbook.
    By BeefGir in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2012, 01:26 PM
  5. how to copy/paste to new workbook several times....
    By sunilmulay in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2009, 10:51 AM

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