View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Maury Markowitz[_2_] Maury Markowitz[_2_] is offline
external usenet poster
 
Posts: 119
Default Making a Summary from multiple worksheets

I haven't tried this myself so there's likely errors in the code, but
try this...

set summ = ActiveWorkbook.Worksheets("theNameOfTheSummaryShee t")
i = 1
for each sheet in ActiveWorkbook.Worksheets
if sheet.name="theNameOfTheSummarySheet" then goto SKIPTHISONE
theThingIWant = sheet.range("A1") ' adjust this to get the value
you're interested in
summ.Cells(1, i) = theThingIWant ' the first number is the row,
the second is the column
SKIPTHISONE:
next sheet

Maury