multiple sheets

  • Thread starter Thread starter nyn04
  • Start date Start date
N

nyn04

I have multiple worksheets with randon names, how would I write a cod
to run through every sheet performing calculation, for example I hav
50 sheets and I will like to add up all the cell A1 of everysheet,

I need to do this in VBA, and the sheets have assigned names such as
BLM, GLO etc...

thank
 
One way:

MsgBox Evaluate("SUM(Sheet1:SheetX!A1)")

where Sheet1 is the first worksheet and SheetX the last.

--
Jim Rech
Excel MVP
|I have multiple worksheets with randon names, how would I write a code
| to run through every sheet performing calculation, for example I have
| 50 sheets and I will like to add up all the cell A1 of everysheet,
|
| I need to do this in VBA, and the sheets have assigned names such as,
| BLM, GLO etc...
|
| thanks
|
|
| ---
| Message posted
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top