Programming A formula

  • Thread starter Thread starter Joseph
  • Start date Start date
J

Joseph

Hi Bernie,

Unfortunately there re other sheets in there. But they are numbere
like so: Sheet1, Sheet2, Sheet3 etc. The other 231 are name
differently. And unfortunately I got a syntax error from your code? An
ideas?

cheer
 
Joseph,

IF your sheets are arranged so that there aren't any Sheet1, etc. sheets
between the sheets you want to sum, then simply

MsgBox Evaluate("=Sum('First Sheet Name:Last Sheet Name'!B2)")

changing First Sheet Name to the actual sheet name of interest, etc.

The syntax error you received was probably due to the extra line break
inserted by our newsreaders.

HTH,
Bernie
MS Excel MVP
 

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