LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default Link a macro to a cell value

It doesn't matter if the number of sheets vary. Just use two dummy
sheets, say SheetFirst and SheetLast. Put all other other sheets in
between these two. Your formula should be
=SUM(SheetFirst:SheetLast!C28)

--
Regards,

Tushar Mehta, MS MVP -- Excel
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
The number of worksheets will vary from workbook to
workbook.

As for "macros", perhaps I mis-use the term, but I can run
the functions from the "macro" dialog, if I desire...

Rich
-----Original Message-----
Why are you using a macro for anything?

Assuming that the individual sheets have their total in

cell C28, on
the summary worksheet, use =SUM(Sheet1:Sheet10!C28)

where Sheet1 and Sheet10 are the first and last

worksheets of interest
to you.

--
Regards,

Tushar Mehta, MS MVP -- Excel





 
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
I want to link a cell in the macro [email protected] Excel Discussion (Misc queries) 1 April 9th 07 06:30 AM
if i sort cell that has link to another page how to keep link steve Bahrain Excel Discussion (Misc queries) 1 August 16th 06 01:20 PM
if i sort cell that has link to another page how to keep link steve Bahrain Excel Discussion (Misc queries) 0 August 16th 06 07:37 AM
using macro that will link into web Conditional Formatting Excel Discussion (Misc queries) 0 May 11th 06 11:25 PM
Link macro to a toolbar? Lars Peter Nielsen Excel Programming 1 August 21st 03 09:22 PM


All times are GMT +1. The time now is 07:06 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"