PC Review


Reply
Thread Tools Rate Thread

Best way to pull data from several different sheets into a summary sheet

 
 
Greg
Guest
Posts: n/a
 
      12th Jan 2011
All,

I have a VBA-formula hybrid workbook that is used to track employees'
vacation time. It is calendar-style, with the days of the month 1-3x
running from left to right, months running vertically. For a day off,
you enter in the code for the type of vacation and the number of hours
in the cell below. Each employee has their own sheet and each
department has their own workbook.

I was recently asked to add a 'team calendar' sheet that would
consolidate all employees' time off onto one page so the manager could
see if there were vacation conflicts.

(VBA-approach) I first tried to accomplish this by having a For/Next
loop circle through all appropriate cells per employee sheet and
export to the Team Calendar tab. This, unfortunately, took a lot of
time to do and was not very efficient. For reference, 5 employees
could take up to 15-20 seconds.

(Formula-approach) My second attempt consisted of an INDIRECT formula
referencing each cell on each sheet that could have a value. The
problem here is that every time a sheet is modified, the auto-
calculation slows down the sheet dramatically!

I hope I have provided enough information and look forward to any
suggestions.

Thank you
 
Reply With Quote
 
 
 
 
Don Guillett Excel MVP
Guest
Posts: n/a
 
      12th Jan 2011
On Jan 12, 10:25*am, Greg <taxicabconfes...@gmail.com> wrote:
> All,
>
> I have a VBA-formula hybrid workbook that is used to track employees'
> vacation time. *It is calendar-style, with the days of the month 1-3x
> running from left to right, months running vertically. For a day off,
> you enter in the code for the type of vacation and the number of hours
> in the cell below. Each employee has their own sheet and each
> department has their own workbook.
>
> I was recently asked to add a 'team calendar' sheet that would
> consolidate all employees' time off onto one page so the manager could
> see if there were vacation conflicts.
>
> (VBA-approach) I first tried to accomplish this by having a For/Next
> loop circle through all appropriate cells per employee sheet and
> export to the Team Calendar tab. *This, unfortunately, took a lot of
> time to do and was not very efficient. For reference, 5 employees
> could take up to 15-20 seconds.
>
> (Formula-approach) My second attempt consisted of an INDIRECT formula
> referencing each cell on each sheet that could have a value. *The
> problem here is that every time a sheet is modified, the auto-
> calculation slows down the sheet dramatically!
>
> I hope I have provided enough information and look forward to any
> suggestions.
>
> Thank you


"If desired, send your file to dguillett @gmail.com I will only look
if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results."
 
Reply With Quote
 
Clif McIrvin
Guest
Posts: n/a
 
      12th Jan 2011
"Greg" <(E-Mail Removed)> wrote in message
news:a604fbb5-857f-49ae-be5a-(E-Mail Removed)...
> All,
>


> I was recently asked to add a 'team calendar' sheet that would
> consolidate all employees' time off onto one page so the manager could
> see if there were vacation conflicts.
>
> (VBA-approach) I first tried to accomplish this by having a For/Next
> loop circle through all appropriate cells per employee sheet and
> export to the Team Calendar tab. This, unfortunately, took a lot of
> time to do and was not very efficient. For reference, 5 employees
> could take up to 15-20 seconds.
>



My guess is the poor speed has a lot to do with not shutting off the
user interface while running your code.

Don't use .Select or .Activate at all in your code, until you are
exiting and want to set up what the user is going to see. There are
different ways to achieve this result; what I use depends some on how I
feel when I'm coding that day (okay, that's a bit of a joke) and on
exactly what I need to do. With / End With comes in handy; I also use
"Set myRange1 = (some range)" and "Set myRange2 = (some other range)"
and then operate on those variables.

Also, check out the performance tips at
http://blogs.msdn.com/b/excel/archiv...practices.aspx

HTH!


--
Clif McIrvin


(clare reads his mail with moe, nomail feeds the bit bucket :-)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Best way to pull data from several different sheets into asummary sheet Greg Microsoft Excel Misc 2 12th Jan 2011 09:40 PM
Assembling Data of Many Sheets in one Summary Sheet Akash Microsoft Excel Programming 3 14th May 2007 10:46 AM
Assembling Data of 100 Sheets in one Summary Sheet Akash Microsoft Excel Programming 8 11th May 2007 07:00 AM
Accumulating Data From Sheets and preparing one summary sheet. Akash Microsoft Excel Programming 0 8th May 2007 11:39 AM
linking column data in sheets to a summary sheet mhsacks Microsoft Excel Misc 1 12th Sep 2003 03:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:57 AM.