HELP Multiple worksheets need data from Cell T4 on each one

mstovall21

New Member
Joined
Sep 29, 2011
Messages
2
I'm trying to get a non-numerical data from Cell location T4 from multiple worksheets into a new one, where it lists it down 1 column What's the best way to do this? Essentially I'm trying not to manually cut and paste cell T4 from each into a new worksheet. Also, I'm not all that familiar with Macros, so any help or tips would be much appreciated! Thanks!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Something like this will "Create" a new sheet, then put a list in columns A:B showing the source sheetname and T4 value from each. This should get you started.

Rich (BB code):
Option Explicit

Sub CreateList()
Dim SummaryStr As String, NR As Long
Dim ws As Worksheet, wsSum As Worksheet

SummaryStr = "Summary"      'this is the name of the sheet to collect into

If Not Evaluate("ISREF('" & SummaryStr & "'!A1)") Then
    Worksheets.Add After:=Sheets(Sheets.Count).Name = SummaryStr
Else
    Sheets(SummaryStr).ClearContents
End If

Set wsSum = Sheets(SummaryStr)
NR = 1

For Each ws In Worksheets
    If ws.Name <> wsSum.Name Then
        wsSum.Range("A" & NR).Value = ws.Name
        wsSum.Range("B" & NR).Value = ws.[T4].Value
        NR = NR + 1
    End If
Next ws

End Sub


You should only have to edit the part in red to the sheet name you want to create, or leave as is to try the first time.
 
Upvote 0
Hi! Thanks for your help. Got a question though. How/where do I define what location/files to pull the data from the T4 cells. Basically how do I define the directory path and file names? Like, I said, I'm not all that familiar with macros. lol
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top