Hello all,
My current macro copies certain sheets over and pastes as values. I'm having problems trying to get each individual work sheet to reset their selection, or at least select cell (1,1).
The first sheet in the new file selects cell(1,1) but when I look at the other sheets the selection remains the entire sheet.
Thanks for your help!
My current macro copies certain sheets over and pastes as values. I'm having problems trying to get each individual work sheet to reset their selection, or at least select cell (1,1).
Code:
Application.ScreenUpdating = False
Sheets(Array("BC", "AB", "SK", "MB", "Prairies", "ON", "QC", "NB", "PE", "NS", "NF", "Atlantic")).Copy
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Cells.Copy
ws.Cells.PasteSpecial (xlValues)
Cells(1, 1).Select
Next
The first sheet in the new file selects cell(1,1) but when I look at the other sheets the selection remains the entire sheet.
Thanks for your help!