Hello All,
I am trying to copy a sheet called Temp in a workbook and pasting in the same workbook multiple times.
Here in the code stops at the highlighted part. What would be the issue here
Regards,
Sakthi
I am trying to copy a sheet called Temp in a workbook and pasting in the same workbook multiple times.
Code:
For oj = 2 To 21
Application.StatusBar = "Please wait... PBA's are generating"
If ActiveWorkbook.Sheets("Temp").Visible = True Then
ActiveWorkbook.Sheets("Temp").Select
[B]ActiveWorkbook.Sheets("Temp").Copy After:=ActiveWorkbook.Sheets(ActiveWorkbook.Sheets.Count)[/B]
ActiveSheet.Name = Left(Sheet2.Range("A" & oj).Value, 9)
ActiveSheet.Range("B1").Value = Sheet2.Range("A" & oj).Value
ActiveSheet.Range("B2").Value = "Week"
ActiveSheet.Range("B3").Value = "% Percentage"
End If
Next oj
Here in the code stops at the highlighted part. What would be the issue here
Regards,
Sakthi
Last edited by a moderator: