HI,Hoping someone can help.
I have the following code to loop through a workbook and copy cells from each worksheet to a pre defined sheet.
The problem I have is I would like to start the loop from the fourth worksheet in the work book not the first.
Any help would be great
Thanks
Private Sub Pages1()
Dim sht As Worksheet
Set myCell = Range("h6")
For Each sht In ActiveWorkbook.Worksheets
If sht.Name <> "test1" Then
Sheets("test1").Range(FindNewSpotInColumn(Range("B5")).Address) = sht.Range(myCell.Address)
End If
Next
I have the following code to loop through a workbook and copy cells from each worksheet to a pre defined sheet.
The problem I have is I would like to start the loop from the fourth worksheet in the work book not the first.
Any help would be great
Thanks
Private Sub Pages1()
Dim sht As Worksheet
Set myCell = Range("h6")
For Each sht In ActiveWorkbook.Worksheets
If sht.Name <> "test1" Then
Sheets("test1").Range(FindNewSpotInColumn(Range("B5")).Address) = sht.Range(myCell.Address)
End If
Next