macros

  • Thread starter Thread starter Pam
  • Start date Start date
P

Pam

I have several thousand sheets of data. I would like to
able to create a master listing from all of these sheets
that displays data from cell I33 and A4 from each sheet...
help?

Pam
 
Pam,

Try this macro, below. It will extract those values from every worksheet,
and put them on a sheet named "Extracted Values", flagged with the sheet
name.

Of course, if these worksheets extend over several thousand _workbooks_
you'll
need to rewrite the macro.

HTH,
Bernie
MS Excel MVP

Sub SharpersExtractor()
Dim mySht As Worksheet

Worksheets.Add.Name = "Extracted Values"

For Each mySht In ActiveWorkbook.Worksheets
Range("A65536").End(xlUp)(2).Value = _
mySht.Name
Range("B65536").End(xlUp)(2).Value = _
mySht.Range("I33").Value
Range("C65536").End(xlUp)(2).Value = _
mySht.Range("A4").End(xlUp).Value
Next mySht
End Sub
 

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