Help: Pulling data from all worksheets

Clayton Michael

New Member
Joined
Dec 7, 2011
Messages
6
Hey all,
Hopefully this is an easy fix. I'm trying to pull a contact from every worksheet in a workbook. All the worksheets are formatted the same way. The only snag I'm running into is getting the macro to select from the correct worksheet specifically the following line:

"WkSht.Range("A8").End(xlDown).Select"

Here's the entire script I'm working with right now:
--------------------------------

Sub Pull_Contacts()
Dim WkSht As Worksheet

For Each WkSht In ThisWorkbook.Worksheets
If WkSht.Name <> "Upcoming" Then
WkSht.Range("A8").End(xlDown).Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Upcoming").Select
Range("A3").End(xlDown).Offset(1, 3).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End If
Next WkSht
End Sub

-------------------------------------

If anyone can tell me what I'm doing wrong or possibly make suggestions I'd really appreciate it.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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