Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Programming A formula


Hi all,

I need to be able to sum one cell (B2) in 231 sheets programmatically
Any ideas?

cheer

--
Josep

-----------------------------------------------------------------------
Joseph's Profile: http://www.excelforum.com/member.php...nfo&userid=563
View this thread: http://www.excelforum.com/showthread.php?threadid=26425

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Programming A formula

Joseph,

If the 231 sheets are all the sheets that are in the workbook:

MsgBox Evaluate("=Sum('" & Worksheets(1).Name & ":" &
Worksheets(Worksheets.Count).Name & "'!B2)")

Otherwise, you will need to change how the formula is structured, or do a
loop....

HTH,
Bernie
MS Excel MVP

"Joseph" wrote in message
...

Hi all,

I need to be able to sum one cell (B2) in 231 sheets programmatically.
Any ideas?

cheers


--
Joseph


------------------------------------------------------------------------
Joseph's Profile:

http://www.excelforum.com/member.php...fo&userid=5637
View this thread: http://www.excelforum.com/showthread...hreadid=264258



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Programming A formula

1 way.
Insert a sheet at the front called A and one at the end called Z then

=SUM(A:Z!B2)

R
Pete
--
(][ This Email has been scanned by Norton AntiVirus. ][)

"Joseph" wrote in message
...

Hi all,

I need to be able to sum one cell (B2) in 231 sheets programmatically.
Any ideas?

cheers


--
Joseph


------------------------------------------------------------------------
Joseph's Profile:

http://www.excelforum.com/member.php...fo&userid=5637
View this thread: http://www.excelforum.com/showthread...hreadid=264258



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
Formula causing run-time error in Excel Programming cherman Excel Worksheet Functions 2 March 15th 10 10:59 PM
Excel - Formula/Programming Ezra[_2_] Excel Worksheet Functions 1 May 19th 08 08:08 PM
Excel Formula / Programming Theresa Excel Discussion (Misc queries) 3 December 18th 07 05:00 AM
Excel Programming - Formula Assistance James D. Sheehan Excel Discussion (Misc queries) 7 December 11th 07 02:54 PM
Programming a simple formula anagaraj1 New Users to Excel 1 August 4th 05 03:32 PM


All times are GMT +1. The time now is 06:23 PM.

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"