Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Barb
 
Posts: n/a
Default combine multiple worksheets & files into 1

I have 18 employees, which each have monthly 12 files for timecards. Each
file is identical in it's format. The difference is each file then has 4-5
worksheets, one for each week and totals at the bottom for hours worked and a
description of the project they were working on each line.

I'm trying to put together a database to replace this archiac way of doing
their timecards so that it will total the hours worked on a specific project
using an Acccess template (Time & Billing).

However, my first step it to get all of this data into 1 report per
employee, so I can import (or rekey if I have to) the information into the
database.

Any help is greatly appreciated!
  #2   Report Post  
PY & Associates
 
Posts: n/a
Default

Put each employees in cells A1 to A18
each month in cells B1 to B12

loop through thus
for i = 1 to 18
for j = 1 to 12
open filename Range("A" & i) & Range("B" & j)
ignore if sheet 5 not present
copy sheets 1 to 5
close this file
next j
next i

you have one big file with all 18 of them please

"Barb" wrote:

I have 18 employees, which each have monthly 12 files for timecards. Each
file is identical in it's format. The difference is each file then has 4-5
worksheets, one for each week and totals at the bottom for hours worked and a
description of the project they were working on each line.

I'm trying to put together a database to replace this archiac way of doing
their timecards so that it will total the hours worked on a specific project
using an Acccess template (Time & Billing).

However, my first step it to get all of this data into 1 report per
employee, so I can import (or rekey if I have to) the information into the
database.

Any help is greatly appreciated!

  #3   Report Post  
Barb
 
Posts: n/a
Default

OK... that was way over my head. Is this done manually or with a macro. I
get the first part about the employees name and months, but don't understand
the 2nd part. What does "i" and "j" represent?

Thanks so much for the quick response.

"PY & Associates" wrote:

Put each employees in cells A1 to A18
each month in cells B1 to B12

loop through thus
for i = 1 to 18
for j = 1 to 12
open filename Range("A" & i) & Range("B" & j)
ignore if sheet 5 not present
copy sheets 1 to 5
close this file
next j
next i

you have one big file with all 18 of them please

"Barb" wrote:

I have 18 employees, which each have monthly 12 files for timecards. Each
file is identical in it's format. The difference is each file then has 4-5
worksheets, one for each week and totals at the bottom for hours worked and a
description of the project they were working on each line.

I'm trying to put together a database to replace this archiac way of doing
their timecards so that it will total the hours worked on a specific project
using an Acccess template (Time & Billing).

However, my first step it to get all of this data into 1 report per
employee, so I can import (or rekey if I have to) the information into the
database.

Any help is greatly appreciated!

  #4   Report Post  
PY & Associates
 
Posts: n/a
Default

It is done with a macro please.
Easily done by your IT people. Don't struggle on your own.

"Barb" wrote in message
...
OK... that was way over my head. Is this done manually or with a macro.

I
get the first part about the employees name and months, but don't

understand
the 2nd part. What does "i" and "j" represent?

Thanks so much for the quick response.

"PY & Associates" wrote:

Put each employees in cells A1 to A18
each month in cells B1 to B12

loop through thus
for i = 1 to 18
for j = 1 to 12
open filename Range("A" & i) & Range("B" & j)
ignore if sheet 5 not present
copy sheets 1 to 5
close this file
next j
next i

you have one big file with all 18 of them please

"Barb" wrote:

I have 18 employees, which each have monthly 12 files for timecards.

Each
file is identical in it's format. The difference is each file then

has 4-5
worksheets, one for each week and totals at the bottom for hours

worked and a
description of the project they were working on each line.

I'm trying to put together a database to replace this archiac way of

doing
their timecards so that it will total the hours worked on a specific

project
using an Acccess template (Time & Billing).

However, my first step it to get all of this data into 1 report per
employee, so I can import (or rekey if I have to) the information into

the
database.

Any help is greatly appreciated!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I combine multiple worksheets into one? Deb Bagby Excel Worksheet Functions 1 September 29th 05 04:34 PM
Adding multiple worksheets Craig Excel Worksheet Functions 1 July 6th 05 07:21 PM
In Excel combine tables from multiple worksheets in to one sheet? Pau Excel Worksheet Functions 1 June 25th 05 12:31 AM
how to combine multiple files in ms excel fifi Excel Discussion (Misc queries) 1 January 12th 05 11:11 AM
Combine multiple Excel files into one master [email protected] Excel Discussion (Misc queries) 1 November 26th 04 11:20 PM


All times are GMT +1. The time now is 11:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"