Extract Data (only certain Cells) from Multiple Worksheets

Korena

New Member
Joined
Oct 10, 2018
Messages
3
Hi!

I have a workbook for employee attendance and each worksheet (one for each employee) is the exact same format. I need to create a master sheet so I can see info from certain cells. How do I do this?

The workbook is dynamic, I'm always adding or removing an employee worksheet.

I tried this and when I run it I get this error...Compile error: invalid outside procedure...

Sub mcrExtractData()
Dim extractedValue(1 To 34) As Long
Dim i As Integer
For i = 1 To 34
Sheet(i).Activate
extractedValue(i) = Range("D1").Value
Next i
End Sub

I have no Idea what I'm doing!
Thanks for your help!

Example of what I'm trying to create.

Employee NameVacation Hours UsedSick Hours UsedOccurrences
Tom D.10202
Fred C.20105
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
If the employee name in col A is exactly the same as the sheet name, you could just use
=INDIRECT(A2&"!D1")
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,192
Members
449,072
Latest member
DW Draft

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