Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Need Help,
I have a Totals sheet with several worksheets that represent projects. The number of worksheets(projects) will be added or deleted depending on project completions. What I'm trying to do is have a Macro to run that will count the number of worksheets (since the number is not constant) and force the formula - + 'sheetName" !B2 + 'sheetName' !B2 - into cell B2 on the Totals sheet. Can anyone help |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this
Add two dummy sheets(empty sheets)with the name start as the first sheet and one with the name end as the last sheet of your workbook. this are empty sheets!!! All worksheets between these sheets will be sum with this formula =SUM(start:end!B2) -- Regards Ron de Bruin (Win XP Pro SP-1 XL2000-2003) www.rondebruin.nl "JAllen3023" wrote in message ... Need Help, I have a Totals sheet with several worksheets that represent projects. The number of worksheets(projects) will be added or deleted depending on project completions. What I'm trying to do is have a Macro to run that will count the number of worksheets (since the number is not constant) and force the formula - + 'sheetName" !B2 + 'sheetName' !B2 - into cell B2 on the Totals sheet. Can anyone help |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This file might be a help:
http://www.bygsoftware.com/examples/zipfiles/consol.zip It's in the "Accountants" section on page: http://www.bygsoftware.com/examples/examples.htm The "Bread-Roll" consolidation method - great for accountants. See how simple it is to consolidate any combination of your organisation's accounts. (No VBA used) -- Regards Andy Wiggins www.BygSoftware.com Home of "Save and BackUp", "The Excel Auditor" and "Byg Tools for VBA" "JAllen3023" wrote in message ... Need Help, I have a Totals sheet with several worksheets that represent projects. The number of worksheets(projects) will be added or deleted depending on project completions. What I'm trying to do is have a Macro to run that will count the number of worksheets (since the number is not constant) and force the formula - + 'sheetName" !B2 + 'sheetName' !B2 - into cell B2 on the Totals sheet. Can anyone help |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
Sub test() somme = 0 For Each f In ActiveWorkbook.Worksheets somme = somme + f.Cells(2, 2) ' B2 Next MsgBox somme End Sub Good luck ! BG |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula setting cell type to blank and conditional formatting | Excel Worksheet Functions | |||
Using a formula to carry totals from 1 sheet to another | Excel Discussion (Misc queries) | |||
formula for totals throughout sheet | Excel Discussion (Misc queries) | |||
Setting a cell reference in one sheet that updates a workbook? | Excel Discussion (Misc queries) | |||
Setting Up A formula For A Time Sheet | Excel Worksheet Functions |