Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default need help populating a totals sheet

I would go with something like this:

Dim objWorksheet As Worksheet

For Each objWorksheet In ActiveWorkbook.Worksheets
'Put your totaling code here
Next objWorksheet


This code loops through every worksheet in the current workbook
regardless of its name.


phil-rge-ee wrote:
I have a workbook that has a separate sheet for everyday we work in each
month. Each sheet is named in this date format: 010207 and 010307 and 010407,
etc. There is also a totals sheet as well. On the totals sheet it pulls data
from all the other sheets and totals them up.
Right now I'm using as an example this formula to total certain column /cells:
=IF('010207'!B2=1,1,0)+IF('010307'!B2=1,1,0)+IF('0 10407'!B2=1,1,0)
I use this formula format to total the data from all the sheets, usually
about 20 sheets per month.

Is there a way to use some formula, marco, or VB script to automate this a
bit. Something that will scan each sheet no matter what the sheet name is and
pull the cell info over? It's a pain to keep changing the formulas when the
sheet names change for the different months.
Thanks for any help you can provide.

Phil


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
populating cells with sheet names bjrbrain Excel Programming 5 May 5th 06 07:14 AM
Populating one sheet with data from other sheets Giselle[_2_] Excel Programming 1 March 25th 06 06:57 PM
Populating a listbox with values from a sheet. shenlingstyle[_2_] Excel Programming 5 November 22nd 05 08:19 PM
populating sheet with data from other sheets G. Beard New Users to Excel 0 October 3rd 05 04:14 AM
Populating sheet names in combobox Todd Huttenstine[_2_] Excel Programming 3 December 21st 03 12:11 AM


All times are GMT +1. The time now is 04:33 AM.

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

About Us

"It's about Microsoft Excel"